Fix: Ressource leak, missing fclose
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 8 May 2014 21:06:22 +0000 (17:06 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Mon, 12 May 2014 14:16:27 +0000 (10:16 -0400)
Fixes coverity issue 1139536.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
src/common/config/config.c

index e3fe74ac284973b6912236dfec89be2904d4bca1..829a645bbb18820b2ad1237574a9fe229596b6cd 100644 (file)
@@ -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;
 }
This page took 0.027028 seconds and 4 git commands to generate.