mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Fix memory leak of sqlite input reader prepared statement
This commit is contained in:
parent
9e07b8a9f1
commit
13831ca21b
1 changed files with 3 additions and 0 deletions
|
@ -49,6 +49,9 @@ SQLite::~SQLite()
|
|||
|
||||
void SQLite::DoClose()
|
||||
{
|
||||
sqlite3_finalize(st);
|
||||
st = nullptr;
|
||||
|
||||
if ( db != 0 )
|
||||
{
|
||||
sqlite3_close(db);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue