summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-02-20 10:42:54 +0100
committerAlexander Bokovoy <ab@samba.org>2013-02-22 16:36:14 +0100
commit62136067712aad9cff8c757b2bfb228ebbecfd76 (patch)
tree71fe2919e92b45abc22837eb2198c271df1ef17a
parent6e8a975e8e33670803e9166a942bd986e695f4fc (diff)
downloadsamba-62136067712aad9cff8c757b2bfb228ebbecfd76.tar.gz
samba-62136067712aad9cff8c757b2bfb228ebbecfd76.tar.bz2
samba-62136067712aad9cff8c757b2bfb228ebbecfd76.zip
s4-lib: Don't leak plugin handle on error.
Reviewed-by: Alexander Bokovoy <ab@samba.org>
-rw-r--r--source4/lib/com/tables.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/lib/com/tables.c b/source4/lib/com/tables.c
index f56e1c3f18..842067e8a5 100644
--- a/source4/lib/com/tables.c
+++ b/source4/lib/com/tables.c
@@ -69,6 +69,7 @@ static struct IUnknown *get_com_class_so(TALLOC_CTX *mem_ctx, const struct GUID
f = dlsym(mod, "get_class_object");
if (!f) {
+ dlclose(mod);
return NULL;
}