From 4e975e497483c173c42278f9c03977a3fb4c3ec7 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Wed, 26 Nov 2014 23:24:49 +0100 Subject: [PATCH] plugin.c:load_one() - Comment on resource leak, we never unload plugins atm. Signed-off-by: Joachim Nilsson --- plugin.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin.c b/plugin.c index b779d790..56e2dab3 100644 --- a/plugin.c +++ b/plugin.c @@ -280,6 +280,9 @@ static int load_one(char *path, char *name) snprintf(plugin, sizeof(plugin), "%s/%s%s", path, name, noext ? ".so" : ""); _d("Loading plugin %s ...", basename(plugin)); + /* Ignore leak, we do not support unloading of plugins atm. + * TODO: Add handle to list of loaded plugins, dlclose() on + * plugin_unregister() */ handle = dlopen(plugin, RTLD_LAZY | RTLD_GLOBAL); if (!handle) { _e("Failed loading plugin %s: %s", plugin, dlerror());