diff options
author | Rob Bradford <rob@linux.intel.com> | 2012-12-05 18:47:10 +0000 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-12-11 23:47:30 -0500 |
commit | 6b8e17af605a34dbe92a7f2102fb60e59bb158d1 (patch) | |
tree | 80aeeb4fa9cd15d5728c90e74f8acb2b66eb36f9 | |
parent | 7d6af71c08e61756f15c2383e44e45734250fb08 (diff) | |
download | weston-6b8e17af605a34dbe92a7f2102fb60e59bb158d1.tar.gz |
compositor: Cleanup if we can't find the symbol in the module
-rw-r--r-- | src/compositor.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/compositor.c b/src/compositor.c index 69dfd410..bab6c82e 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; } |