From: Jonathan McDowell Date: Sun, 18 Aug 2019 13:55:09 +0000 (+0100) Subject: Properly free database context when cleaning up fs backend X-Git-Tag: onak-0.6.0~34 X-Git-Url: https://the.earth.li/gitweb/?a=commitdiff_plain;h=d623a1b8e656cc5f45b360b402dfc974c711c8d3;p=onak.git Properly free database context when cleaning up fs backend --- diff --git a/keydb_fs.c b/keydb_fs.c index 86da08e..01874ee 100644 --- a/keydb_fs.c +++ b/keydb_fs.c @@ -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); } /**