summaryrefslogtreecommitdiffstats
path: root/hcid/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'hcid/plugin.c')
-rw-r--r--hcid/plugin.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/hcid/plugin.c b/hcid/plugin.c
index 1293e70f..b74108bd 100644
--- a/hcid/plugin.c
+++ b/hcid/plugin.c
@@ -78,12 +78,14 @@ gboolean plugin_init(void)
filename = g_build_filename(PLUGINDIR, file, NULL);
module = g_module_open(filename, 0);
- g_free(filename);
if (module == NULL) {
error("Can't load plugin %s", filename);
+ g_free(filename);
continue;
}
+ g_free(filename);
+
debug("%s", g_module_name(module));
if (g_module_symbol(module, "bluetooth_plugin_desc",