s3:winbind: Fix Coverity ID 940: Resource Leak
authorVolker Lendecke <vl@samba.org>
Fri, 4 Sep 2009 05:52:28 +0000 (07:52 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 4 Sep 2009 05:53:56 +0000 (07:53 +0200)
source3/winbindd/winbindd_cache.c

index 8d44d27141467d24b9a917db7e4258ababbfc5c0..6d48fe5f857cc77da7422fb207de8a13104afd45 100644 (file)
@@ -2110,6 +2110,7 @@ NTSTATUS wcache_lookup_usergroups(struct winbindd_domain *domain,
        num_sids = centry_uint32(centry);
        sids = talloc_array(mem_ctx, struct dom_sid, num_sids);
        if (sids == NULL) {
+               centry_free(centry);
                return NT_STATUS_NO_MEMORY;
        }