Hi Matthias,

> - Log -----------------------------------------------------------------
> commit 8044a20d8d84e740ca5c6d76bacaa977d691f3d0
> Author: Matthias Dieter Wallnöfer <[email protected]>
> 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 <[email protected]>
>     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

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to