Skip to content

Commit 54a08d9

Browse files
committed
test: missing close database connection after initialization
1 parent c46377f commit 54a08d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

test/main.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ int main (void) {
291291
sqlite3 *db = NULL;
292292
rc += open_load_ext(DB_PATH, &db);
293293
rc += db_init(db);
294+
if (db) sqlite3_close(db);
294295

295296
rc += test_report("Init+Sync Test:", test_init(DB_PATH, 0));
296297
rc += test_report("Is Enabled Test:", test_is_enabled(DB_PATH));

0 commit comments

Comments
 (0)