aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordan <dan@noemail.net>2014-03-12 19:38:38 +0000
committerdan <dan@noemail.net>2014-03-12 19:38:38 +0000
commitd88e521f591a447cc13b377fcbd078ed435ebdb8 (patch)
treef7307871a75fcf0388d97d2a2ae3c78ed47286fa /src
parent82d25da5b08cc1358b1b19fdb625575dc923879e (diff)
downloadsqlite-d88e521f591a447cc13b377fcbd078ed435ebdb8.tar.gz
sqlite-d88e521f591a447cc13b377fcbd078ed435ebdb8.zip
Fix an obscure bug causing sqlite3_close() to fail if there are virtual tables on the disconnect list when it is called.
FossilOrigin-Name: 6504aa47a8ebb13827be017c4cb4b2dc3c4c55f4
Diffstat (limited to 'src')
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 8b7495dd4..9e83d4963 100644
--- a/src/main.c
+++ b/src/main.c
@@ -800,6 +800,7 @@ static void disconnectAllVtab(sqlite3 *db){
}
}
}
+ sqlite3VtabUnlockList(db);
sqlite3BtreeLeaveAll(db);
#else
UNUSED_PARAMETER(db);