ldb:ldb_modules.c - if we don't find the associated dynamic object then please close...
authorMatthias Dieter Wallnöfer <mdw@samba.org>
Thu, 21 Oct 2010 06:51:46 +0000 (08:51 +0200)
committerMatthias Dieter Wallnöfer <mdw@samba.org>
Thu, 21 Oct 2010 07:52:43 +0000 (07:52 +0000)
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Thu Oct 21 07:52:44 UTC 2010 on sn-devel-104

source4/lib/ldb/common/ldb_modules.c

index ec71c8d04256c8b7cd89e45e2528483a78acecc2..b8f155d2f0fd208456db124be06f9b74a64302d1 100644 (file)
@@ -320,6 +320,7 @@ static void *ldb_dso_load_symbol(struct ldb_context *ldb, const char *name,
 
        sym = dlsym(handle, symbol);
        if (sym == NULL) {
+               dlclose(handle);
                ldb_debug(ldb, LDB_DEBUG_ERROR, "no symbol `%s' found in %s: %s", symbol, path, dlerror());
                return NULL;
        }