summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-08-26 18:20:06 +0200
committerVolker Lendecke <vl@samba.org>2009-08-26 18:20:06 +0200
commitd49ab9226f849d1f08f7cf83956d35cf4950906e (patch)
tree1242dd1d20cefca11d8e58b8d79e6096c3370222
parentf2fa9e62466fa8a6cc6a53172da6c8b24d51874d (diff)
downloadsamba-d49ab9226f849d1f08f7cf83956d35cf4950906e.tar.gz
samba-d49ab9226f849d1f08f7cf83956d35cf4950906e.tar.bz2
samba-d49ab9226f849d1f08f7cf83956d35cf4950906e.zip
s3:winbind: Fix Coverity ID 942: Resource Leak
-rw-r--r--source3/winbindd/winbindd_cache.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c
index a46aa0af3e..c947254e81 100644
--- a/source3/winbindd/winbindd_cache.c
+++ b/source3/winbindd/winbindd_cache.c
@@ -2306,6 +2306,7 @@ NTSTATUS wcache_lookup_groupmem(struct winbindd_domain *domain,
*num_names = centry_uint32(centry);
if (*num_names == 0) {
+ centry_free(centry);
return NT_STATUS_OK;
}
@@ -2317,6 +2318,7 @@ NTSTATUS wcache_lookup_groupmem(struct winbindd_domain *domain,
TALLOC_FREE(*sid_mem);
TALLOC_FREE(*names);
TALLOC_FREE(*name_types);
+ centry_free(centry);
return NT_STATUS_NO_MEMORY;
}