summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-03-07 20:32:08 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:11:03 -0500
commita78d2a85fbd2fb80187df2970f438dbe485c0454 (patch)
tree0560de2fccba37ae2ed3083d2d9b75dcb09aaa02 /source3/nsswitch
parentdece1a2db267eb7adf1560bc040763be919db592 (diff)
downloadsamba-a78d2a85fbd2fb80187df2970f438dbe485c0454.tar.gz
samba-a78d2a85fbd2fb80187df2970f438dbe485c0454.tar.bz2
samba-a78d2a85fbd2fb80187df2970f438dbe485c0454.zip
r13984: Fix Coverity bug # 98
(This used to be commit 0a2aa3a48bd5fd7e5a9aa06068ddd621b19c1dbe)
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/winbindd_cache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/nsswitch/winbindd_cache.c b/source3/nsswitch/winbindd_cache.c
index 7f14f359da..8e694ed850 100644
--- a/source3/nsswitch/winbindd_cache.c
+++ b/source3/nsswitch/winbindd_cache.c
@@ -1469,8 +1469,10 @@ static NTSTATUS lookup_useraliases(struct winbindd_domain *domain,
(*alias_rids) = TALLOC_ARRAY(mem_ctx, uint32, *num_aliases);
- if ((*num_aliases != 0) && ((*alias_rids) == NULL))
+ if ((*num_aliases != 0) && ((*alias_rids) == NULL)) {
+ centry_free(centry);
return NT_STATUS_NO_MEMORY;
+ }
for (i=0; i<(*num_aliases); i++)
(*alias_rids)[i] = centry_uint32(centry);