1
0
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:
dan
2019-11-21 17:14:55 +00:00
parent 6637332988
commit 9c9c70920b
3 changed files with 8 additions and 8 deletions

View File

@@ -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);
}