From: Pavel Rochnyack Date: Thu, 12 May 2016 10:24:00 +0000 (+0600) Subject: dbi plugin: Fix memory leak. X-Git-Tag: collectd-5.6.3~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=31731ec0a3f7cd0d9de9f0e5249115206c225d8a;p=collectd.git 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 --- 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);