uci: fix memory leak in rpc_uci_replace_savedir()
[project/rpcd.git] / plugin.c
index 70d2c56..532fa15 100644 (file)
--- a/plugin.c
+++ b/plugin.c
@@ -412,7 +412,7 @@ rpc_plugin_register_library(struct ubus_context *ctx, const char *path)
        struct rpc_plugin *p;
        void *dlh;
 
-       dlh = dlopen(path, RTLD_LAZY | RTLD_GLOBAL);
+       dlh = dlopen(path, RTLD_LAZY | RTLD_LOCAL);
 
        if (!dlh)
                return UBUS_STATUS_UNKNOWN_ERROR;