Skip to content
Snippets Groups Projects
Commit aa39264a authored by Samuel H. Kenyon's avatar Samuel H. Kenyon
Browse files

Set the add prepared statement to NULL after finalizing it.

parent a8cd0103
Branches
No related tags found
No related merge requests found
...@@ -720,6 +720,8 @@ sqlite_v1_close(TSK_IDX_INFO * idx_info) ...@@ -720,6 +720,8 @@ sqlite_v1_close(TSK_IDX_INFO * idx_info)
finalize_stmt(m_stmt); finalize_stmt(m_stmt);
} }
m_stmt = NULL;
if (idx_info->idx_struct.idx_sqlite_v1->hIdx_sqlite) { if (idx_info->idx_struct.idx_sqlite_v1->hIdx_sqlite) {
sqlite3_close(idx_info->idx_struct.idx_sqlite_v1->hIdx_sqlite); sqlite3_close(idx_info->idx_struct.idx_sqlite_v1->hIdx_sqlite);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment