plugins BUGFIX memory leak
diff --git a/src/plugins.c b/src/plugins.c
index 4045fd5..eaee046 100644
--- a/src/plugins.c
+++ b/src/plugins.c
@@ -318,6 +318,7 @@
         name = strndup(file->d_name, len - LY_PLUGIN_SUFFIX_LEN);
         if (!name) {
             LOGMEM(NULL);
+            dlclose(dlhandler);
             free(str);
             return;
         }