From 62136067712aad9cff8c757b2bfb228ebbecfd76 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 20 Feb 2013 10:42:54 +0100 Subject: [PATCH] s4-lib: Don't leak plugin handle on error. Reviewed-by: Alexander Bokovoy --- source4/lib/com/tables.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.34.1