1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-08 14:02:16 +03:00

Remove a mutex reference leak from sqlite3_reoptimize().

FossilOrigin-Name: 9f0937066184421f23453ceb451fd726c75cb593
This commit is contained in:
dan
2009-10-16 15:19:08 +00:00
parent 937d0dea4f
commit 85a48dfd71
3 changed files with 7 additions and 9 deletions

View File

@@ -1233,8 +1233,6 @@ int sqlite3_reoptimize(sqlite3_stmt *pStmt){
if( v->isPrepareV2==0 || v->pc>0 ){
rc = SQLITE_MISUSE;
}else if( v->optimizable ){
sqlite3 *db = v->db;
sqlite3_mutex_enter(db->mutex);
rc = sqlite3Reprepare(v);
rc = sqlite3ApiExit(db, rc);
}