summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--hcid/plugin.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hcid/plugin.c b/hcid/plugin.c
index 41c55155..27c846e7 100644
--- a/hcid/plugin.c
+++ b/hcid/plugin.c
@@ -101,8 +101,10 @@ gboolean plugin_init(GKeyFile *config)
debug("Loading plugins %s", PLUGINDIR);
dir = g_dir_open(PLUGINDIR, 0, NULL);
- if (!dir)
+ if (!dir) {
+ g_strfreev(disabled);
return FALSE;
+ }
while ((file = g_dir_read_name(dir)) != NULL) {
GModule *module;