1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-08 19:42:06 +03:00

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
This commit is contained in:
dan
2014-03-12 19:38:38 +00:00
parent 82d25da5b0
commit d88e521f59
7 changed files with 115 additions and 11 deletions

View File

@ -3241,6 +3241,8 @@ static int rtreeInit(
if( rc==SQLITE_OK ){
*ppVtab = (sqlite3_vtab *)pRtree;
}else{
assert( *ppVtab==0 );
assert( pRtree->nBusy==1 );
rtreeRelease(pRtree);
}
return rc;