]> the.earth.li Git - onak.git/commitdiff
Properly free database context when cleaning up fs backend
authorJonathan McDowell <noodles@earth.li>
Sun, 18 Aug 2019 13:55:09 +0000 (14:55 +0100)
committerJonathan McDowell <noodles@earth.li>
Sun, 18 Aug 2019 13:55:09 +0000 (14:55 +0100)
keydb_fs.c

index 86da08e59b8807d184fa8af2a5c1b1165c753754..01874ee4188da6e1d483a8fffb7bc7115e47ba70 100644 (file)
@@ -636,6 +636,10 @@ static void fs_cleanupdb(struct onak_dbctx *dbctx)
 
        /* Mmmm nothing to do here? */
        close(privctx->lockfile_fd);
+
+       free(privctx);
+       dbctx->priv = NULL;
+       free(dbctx);
 }
 
 /**