From 8044a20d8d84e740ca5c6d76bacaa977d691f3d0 Mon Sep 17 00:00:00 2001 From: Matthias Dieter Wallnöfer Date: Thu, 21 Oct 2010 08:51:46 +0200 Subject: ldb:ldb_modules.c - if we don't find the associated dynamic object then please close the handle MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Autobuild-User: Matthias Dieter Wallnöfer Autobuild-Date: Thu Oct 21 07:52:44 UTC 2010 on sn-devel-104 --- source4/lib/ldb/common/ldb_modules.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source4/lib') diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c index ec71c8d042..b8f155d2f0 100644 --- a/source4/lib/ldb/common/ldb_modules.c +++ b/source4/lib/ldb/common/ldb_modules.c @@ -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; } -- cgit