From 31731ec0a3f7cd0d9de9f0e5249115206c225d8a Mon Sep 17 00:00:00 2001 From: Pavel Rochnyack Date: Thu, 12 May 2016 16:24:00 +0600 Subject: [PATCH] dbi plugin: Fix memory leak. Some memory was leaked when shutting down. This is a partial back-port of 5ee365a. Signed-off-by: Florian Forster --- src/dbi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/dbi.c b/src/dbi.c index d013e141..8b383f17 100644 --- a/src/dbi.c +++ b/src/dbi.c @@ -172,7 +172,9 @@ static void cdbi_database_free(cdbi_database_t *db) /* {{{ */ return; sfree(db->name); + sfree(db->select_db); sfree(db->driver); + sfree(db->host); for (size_t i = 0; i < db->driver_options_num; i++) { sfree(db->driver_options[i].key); -- 2.30.2