diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-07-11 07:30:47 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-07-11 07:30:47 +0000 |
commit | 21dc47692b8bb900b9aa2e7b911c37464fbaf12e (patch) | |
tree | 0bb35bd78c1c81f1c48699e1fd89a6a1faf46b4e | |
parent | 972eeffa2bc0ef8962b1097183675c6a1691490b (diff) |
Fix memory leak
-rw-r--r-- | hcid/plugin.c | 4 |
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; |