SQLite: Fix memory leaks in No-Intro DB
Vicki Pfau vi@endrift.com
Wed, 08 May 2019 12:49:15 -0700
1 files changed,
3 insertions(+),
0 deletions(-)
jump to
M
src/feature/sqlite3/no-intro.c
→
src/feature/sqlite3/no-intro.c
@@ -263,6 +263,8 @@ free((void*) buffer.romName);
free((void*) dbType); free((void*) dbVersion); + sqlite3_finalize(gamedbTable); + sqlite3_finalize(gamedbDrop); sqlite3_finalize(gameTable); sqlite3_finalize(romTable);@@ -275,6 +277,7 @@ return true;
} void NoIntroDBDestroy(struct NoIntroDB* db) { + sqlite3_finalize(db->crc32); sqlite3_close(db->db); free(db); }