diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index 35c0607b4..63a105c3f 100644 --- a/src/main.c +++ b/src/main.c @@ -2969,7 +2969,6 @@ static int openDatabase( sqlite3_wal_autocheckpoint(db, SQLITE_DEFAULT_WAL_AUTOCHECKPOINT); opendb_out: - sqlite3_free(zOpen); if( db ){ assert( db->mutex!=0 || isThreadsafe==0 || sqlite3GlobalConfig.bFullMutex==0 ); @@ -3006,6 +3005,7 @@ opendb_out: } } #endif + sqlite3_free(zOpen); return rc & 0xff; } |