compositor: Cleanup if we can't find the symbol in the module
authorRob Bradford <rob@linux.intel.com>
Wed, 5 Dec 2012 18:47:10 +0000 (18:47 +0000)
committerKristian Høgsberg <krh@bitplanet.net>
Fri, 7 Dec 2012 03:33:08 +0000 (22:33 -0500)
src/compositor.c

index d6e833f..f6c94b6 100644 (file)
@@ -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;
        }