diff options
author | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-10-21 08:51:46 +0200 |
---|---|---|
committer | Matthias Dieter Wallnöfer <mdw@samba.org> | 2010-10-21 07:52:43 +0000 |
commit | 8044a20d8d84e740ca5c6d76bacaa977d691f3d0 (patch) | |
tree | 1dca27f3434424e2be0ba08908e725d048d5bb94 /source4/lib/ldb | |
parent | 0b8b9aed34b9ad80d36860840e024330ae7cd671 (diff) | |
download | samba-8044a20d8d84e740ca5c6d76bacaa977d691f3d0.tar.gz samba-8044a20d8d84e740ca5c6d76bacaa977d691f3d0.tar.bz2 samba-8044a20d8d84e740ca5c6d76bacaa977d691f3d0.zip |
ldb:ldb_modules.c - if we don't find the associated dynamic object then please close the handle
Autobuild-User: Matthias Dieter Wallnöfer <mdw@samba.org>
Autobuild-Date: Thu Oct 21 07:52:44 UTC 2010 on sn-devel-104
Diffstat (limited to 'source4/lib/ldb')
-rw-r--r-- | source4/lib/ldb/common/ldb_modules.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; } |