git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c298e66
)
s3:winbind: Fix Coverity ID 940: Resource Leak
author
Volker Lendecke
<vl@samba.org>
Fri, 4 Sep 2009 05:52:28 +0000
(07:52 +0200)
committer
Volker Lendecke
<vl@samba.org>
Fri, 4 Sep 2009 05:53:56 +0000
(07:53 +0200)
source3/winbindd/winbindd_cache.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/winbindd_cache.c
b/source3/winbindd/winbindd_cache.c
index 8d44d27141467d24b9a917db7e4258ababbfc5c0..6d48fe5f857cc77da7422fb207de8a13104afd45 100644
(file)
--- 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;
}