summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-09-04 07:52:28 +0200
committerVolker Lendecke <vl@samba.org>2009-09-04 07:53:56 +0200
commit360436b656fc2d939175ae740ecee98d44fadaec (patch)
tree8c5affd6847d10886701528cd6b990715e4c4115 /source3/winbindd
parentc298e660bd28140125f2ac6b47dff6d7c01e82ae (diff)
downloadsamba-360436b656fc2d939175ae740ecee98d44fadaec.tar.gz
samba-360436b656fc2d939175ae740ecee98d44fadaec.tar.bz2
samba-360436b656fc2d939175ae740ecee98d44fadaec.zip
s3:winbind: Fix Coverity ID 940: Resource Leak
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_cache.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c
index 8d44d27141..6d48fe5f85 100644
--- a/source3/winbindd/winbindd_cache.c
+++ b/source3/winbindd/winbindd_cache.c
@@ -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;
}