aboutsummaryrefslogtreecommitdiff
path: root/tool/sqldiff.c
diff options
context:
space:
mode:
authordan <dan@noemail.net>2020-11-17 21:09:56 +0000
committerdan <dan@noemail.net>2020-11-17 21:09:56 +0000
commitaff1a57f4d19786ea07544d79eb82124d1122c49 (patch)
tree60fc53eaea46ecd7945d033bef484b9751c5177b /tool/sqldiff.c
parent12c9994659dc1f561f961f3dbbad6e11ec8d963c (diff)
downloadsqlite-aff1a57f4d19786ea07544d79eb82124d1122c49.tar.gz
sqlite-aff1a57f4d19786ea07544d79eb82124d1122c49.zip
Fix trivial memory leaks in the shell and sqldiff programs.
FossilOrigin-Name: 272793e5edc47e431be77d589718a001f2696869e3e15f1371a1890645a995a7
Diffstat (limited to 'tool/sqldiff.c')
-rw-r--r--tool/sqldiff.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/sqldiff.c b/tool/sqldiff.c
index 85cae56de..123d5b49b 100644
--- a/tool/sqldiff.c
+++ b/tool/sqldiff.c
@@ -473,6 +473,7 @@ static void dump_table(const char *zTab, FILE *out){
fprintf(out, "%s;\n", sqlite3_column_text(pStmt,0));
}
sqlite3_finalize(pStmt);
+ sqlite3_free(zId);
}