From 860f4eb744af463dd4a0e7d11e7882973ccf1e44 Mon Sep 17 00:00:00 2001 From: Haru Date: Fri, 28 Aug 2015 02:45:20 +0200 Subject: Fixed some memory leaks in code using libconfig - Special thanks to Dastgir Signed-off-by: Haru --- src/common/HPM.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/common/HPM.c') diff --git a/src/common/HPM.c b/src/common/HPM.c index a78f03daa..6d68d6ed6 100644 --- a/src/common/HPM.c +++ b/src/common/HPM.c @@ -580,8 +580,8 @@ void hplugins_config_read(void) { snprintf(filename, 60, "plugins/%s%s", libconfig->setting_get_string_elem(plist,i), DLL_EXT); HPM->load(filename); } - libconfig->destroy(&plugins_conf); } + libconfig->destroy(&plugins_conf); if( HPM->plugin_count ) ShowStatus("HPM: There are '"CL_WHITE"%d"CL_RESET"' plugins loaded, type '"CL_WHITE"plugins"CL_RESET"' to list them\n", HPM->plugin_count); -- cgit v1.2.3-60-g2f50