From: Florian Forster Date: Thu, 9 Oct 2008 06:43:48 +0000 (+0200) Subject: src/configfile.c: Fix a minor memory leak. X-Git-Tag: collectd-4.4.4~9 X-Git-Url: https://git.octo.it/?p=collectd.git;a=commitdiff_plain;h=3c316743f0dccb70e49a10ed44951dd4b289d9f0 src/configfile.c: Fix a minor memory leak. Thanks to Niraj Tolia for reporting this :) --- diff --git a/src/configfile.c b/src/configfile.c index 1df91119..8b526f2e 100644 --- a/src/configfile.c +++ b/src/configfile.c @@ -888,7 +888,11 @@ int cf_read (char *filename) dispatch_block (conf->children + i); } + oconfig_free (conf); + + /* Read the default types.db if no `TypesDB' option was given. */ if (cf_default_typesdb) - read_types_list (PLUGINDIR"/types.db"); /* FIXME: Configure path */ + read_types_list (PLUGINDIR"/types.db"); + return (0); } /* int cf_read */