[SCM] Samba Shared Repository - branch master updated
Stefan (metze) Metzmacher
metze at samba.org
Thu Oct 21 02:23:59 MDT 2010
Hi Matthias,
> - Log -----------------------------------------------------------------
> commit 8044a20d8d84e740ca5c6d76bacaa977d691f3d0
> Author: Matthias Dieter Wallnöfer <mdw at samba.org>
> Date: Thu Oct 21 08:51:46 2010 +0200
>
> 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 at samba.org>
> Autobuild-Date: Thu Oct 21 07:52:44 UTC 2010 on sn-devel-104
> diff --git a/source4/lib/ldb/common/ldb_modules.c b/source4/lib/ldb/common/ldb_modules.c
> index ec71c8d..b8f155d 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;
I think we should call dlclose() after ldb_debug() otherwise dlerror()
may not return
the desired result.
metze
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20101021/3523f957/attachment.pgp>
More information about the samba-technical
mailing list