Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
In case the plugin as no init function, return an error
Baptiste Daroussin committed 13 years ago
commit d5aa939dd0deea2725654d55be5c2bb92e90f70f
parent a55777cf1a4b39283112a9d80d0bc361dd2279b4
1 file changed +2 -0
modified libpkg/plugins.c
@@ -411,6 +411,8 @@ pkg_plugins_init(void)
			     pkg_config_value(v));
			pkg_emit_error("Plugin '%s' will not be loaded: %s",
			      pkg_config_value(v), dlerror());
+
			dlclose(p->lh);
+
			return (EPKG_FATAL);
		}
		pkg_plugin_set(p, PKG_PLUGIN_PLUGINFILE, pluginfile);
		if (init_func(p) == EPKG_OK) {