diff options
author | Volker Lendecke <vl@samba.org> | 2009-09-04 07:52:28 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-09-04 07:53:56 +0200 |
commit | 360436b656fc2d939175ae740ecee98d44fadaec (patch) | |
tree | 8c5affd6847d10886701528cd6b990715e4c4115 | |
parent | c298e660bd28140125f2ac6b47dff6d7c01e82ae (diff) | |
download | samba-360436b656fc2d939175ae740ecee98d44fadaec.tar.gz samba-360436b656fc2d939175ae740ecee98d44fadaec.tar.bz2 samba-360436b656fc2d939175ae740ecee98d44fadaec.zip |
s3:winbind: Fix Coverity ID 940: Resource Leak
-rw-r--r-- | source3/winbindd/winbindd_cache.c | 1 |
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; } |