mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Fix a recently introduced memory leak in the test code in test_vfs.c.
FossilOrigin-Name: 2d53a30cc23e53033af8e8666457654db5dcc453ed6cd176ce1d0bff4f528159
This commit is contained in:
@@ -1392,8 +1392,8 @@ static void SQLITE_TCLAPI testvfs_obj_del(ClientData cd){
|
||||
if( p->pScript ) Tcl_DecrRefCount(p->pScript);
|
||||
sqlite3_vfs_unregister(p->pVfs);
|
||||
memset(p->pVfs, 0, sizeof(sqlite3_vfs));
|
||||
memset(p, 0, sizeof(Testvfs));
|
||||
ckfree((char *)p->pVfs);
|
||||
memset(p, 0, sizeof(Testvfs));
|
||||
ckfree((char *)p);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user