1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-30 19:03:16 +03:00

Fix a memory leak in the ".dump" command of the CLI that can occur if an

error other than database corruption is seen while trying to query the
database.

FossilOrigin-Name: 2560cc7072c923f534a5de1e15d2b0dd4ac5faf0a8876d9e3bf9804345585444
This commit is contained in:
drh
2024-11-13 18:04:49 +00:00
parent 31c160ab8f
commit 26c080a04b
3 changed files with 8 additions and 8 deletions

View File

@ -4886,9 +4886,9 @@ static int run_schema_dump_query(
}else{
rc = SQLITE_CORRUPT;
}
sqlite3_free(zErr);
free(zQ2);
}
sqlite3_free(zErr);
return rc;
}