[lttng-dev] [PATCH lttng-tools] Fix: Ressource leak, missing fclose

Jérémie Galarneau jeremie.galarneau at efficios.com
Thu May 8 17:06:22 EDT 2014


Fixes coverity issue 1139536.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau at efficios.com>
---
 src/common/config/config.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/common/config/config.c b/src/common/config/config.c
index e3fe74a..829a645 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;
 }
-- 
1.9.2




More information about the lttng-dev mailing list