From c9e64abc5c7ed9b55fca998532c1947ab1e8d739 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 d6e833f9..f6c94b6d 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -3055,6 +3055,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; }