From 3c316743f0dccb70e49a10ed44951dd4b289d9f0 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 9 Oct 2008 08:43:48 +0200 Subject: [PATCH] src/configfile.c: Fix a minor memory leak. Thanks to Niraj Tolia for reporting this :) --- src/configfile.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 */ -- 2.11.0