From eb657c324f83e94d46f80b9c1b97fa0228c3a47a Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Wed, 20 Feb 2013 09:51:43 +0100 Subject: [PATCH] winbind: Don't leak centry memory. Reviewed-by: Alexander Bokovoy The last two patches address bug #9684 - Fix two resource leaks in winbindd. --- 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 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; } -- 2.11.4.GIT