From d623a1b8e656cc5f45b360b402dfc974c711c8d3 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Sun, 18 Aug 2019 14:55:09 +0100 Subject: [PATCH] Properly free database context when cleaning up fs backend --- keydb_fs.c | 4 ++++ 1 file changed, 4 insertions(+) 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); } /** -- 2.39.5