From 6b8e17af605a34dbe92a7f2102fb60e59bb158d1 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Wed, 5 Dec 2012 18:47:10 +0000 Subject: [PATCH] compositor: Cleanup if we can't find the symbol in the module --- src/compositor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compositor.c b/src/compositor.c index 69dfd410e..bab6c82ea 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -2962,6 +2962,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; }