From: Jérémie Galarneau Date: Thu, 8 May 2014 21:06:22 +0000 (-0400) Subject: Fix: Ressource leak, missing fclose X-Git-Tag: v2.5.0-rc1~49 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=fab7c72365b33d30c74fa461554799ccd5f8bb60;p=lttng-tools.git Fix: Ressource leak, missing fclose Fixes coverity issue 1139536. Signed-off-by: Jérémie Galarneau Signed-off-by: David Goulet --- diff --git a/src/common/config/config.c b/src/common/config/config.c index e3fe74ac2..829a645bb 100644 --- a/src/common/config/config.c +++ b/src/common/config/config.c @@ -238,6 +238,7 @@ int config_get_section_entries(const char *override_path, const char *section, ret = ini_parse_file(config_file, (ini_entry_handler) config_entry_handler_filter, (void *) &filter); + fclose(config_file); end: return ret; }