s4-lib: Don't leak plugin handle on error.
authorAndreas Schneider <asn@samba.org>
Wed, 20 Feb 2013 09:42:54 +0000 (10:42 +0100)
committerAlexander Bokovoy <ab@samba.org>
Fri, 22 Feb 2013 15:36:14 +0000 (16:36 +0100)
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source4/lib/com/tables.c

index f56e1c3f1887671ff05c20cf79e2b8ea4d392c99..842067e8a54b65a7998960310dc952e24d3d417e 100644 (file)
@@ -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;
        }