From 71c8cd19cf079c7e1462a9ca4432725e3623f7cd Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 20 Oct 2013 17:25:27 +0200 Subject: winbind3: Fix CID 241468 Resource leak We were leaking centry in this error case Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/winbindd/winbindd_cache.c | 1 + 1 file changed, 1 insertion(+) diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index 72529276c8..91c19fa2b1 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -2090,6 +2090,7 @@ static NTSTATUS rids_to_names(struct winbindd_domain *domain, } else { /* something's definitely wrong */ result = centry->status; + centry_free(centry); goto error; } -- cgit