[PATCH 8/9] compositor: Cleanup if we can't find the symbol in the module

Rob Bradford robert.bradford at intel.com
Wed Dec 5 10:47:10 PST 2012


From: Rob Bradford <rob at linux.intel.com>

---
 src/compositor.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/compositor.c b/src/compositor.c
index b29d697..9f8fed6 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -3089,6 +3089,7 @@ load_module(const char *name, const char *entrypoint)
 	init = dlsym(module, entrypoint);
 	if (!init) {
 		weston_log("Failed to lookup init function: %s\n", dlerror());
+		dlclose(module);
 		return NULL;
 	}
 
-- 
1.7.11.7



More information about the wayland-devel mailing list