Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit c3e607b

Browse files
Merge pull request #127 from livecode/bugfix-21932
[[ Bug 21932 ]] Fix memory leak when executing sqlite queries
2 parents 9a5c996 + d7ed8e6 commit c3e607b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libsqlite/src/sqlitedataset.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,8 @@ static int sqlite3_query_exec(sqlite3 *db, const char *zSql, int (*xCallback)(vo
737737
}
738738
}
739739

740+
free(azVals);
741+
azVals = 0;
740742
free(azCols);
741743
azCols = 0;
742744
}

0 commit comments

Comments
 (0)