summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2013-02-20 09:51:43 +0100
committerKarolin Seeger <kseeger@samba.org>2013-03-01 16:38:01 +0100
commiteb657c324f83e94d46f80b9c1b97fa0228c3a47a (patch)
tree9452ba6d358afb08edcae4b59512af8e117f8c8e /source3
parent30d7a3ad920456fee2a589b501ba835d13de6c29 (diff)
downloadsamba-eb657c324f83e94d46f80b9c1b97fa0228c3a47a.tar.gz
winbind: Don't leak centry memory. Reviewed-by: Alexander Bokovoy <ab@samba.org>
The last two patches address bug #9684 - Fix two resource leaks in winbindd.
Diffstat (limited to 'source3')
-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 ea503e1b8d7..81b9b1799b8 100644
--- a/source3/winbindd/winbindd_cache.c
+++ b/source3/winbindd/winbindd_cache.c
@@ -2130,6 +2130,7 @@ static NTSTATUS rids_to_names(struct winbindd_domain *domain,
} else {
/* something's definitely wrong */
result = centry->status;
+ centry_free(centry);
goto error;
}