From: Volker Lendecke Date: Tue, 10 Jan 2017 13:29:38 +0000 (+0000) Subject: winbind: Fix CID 1398530 Resource leak X-Git-Tag: talloc-2.1.9~426 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f16908c454e4350d9b3a321ea78d345f7c7bfd55;p=thirdparty%2Fsamba.git winbind: Fix CID 1398530 Resource leak Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Wed Jan 11 04:38:25 CET 2017 on sn-devel-144 --- diff --git a/source3/winbindd/winbindd_cache.c b/source3/winbindd/winbindd_cache.c index d92c050ee70..4431cb52b64 100644 --- a/source3/winbindd/winbindd_cache.c +++ b/source3/winbindd/winbindd_cache.c @@ -1457,6 +1457,7 @@ do_fetch_cache: rids = talloc_array(mem_ctx, uint32_t, num_rids); if (rids == NULL) { + centry_free(centry); return NT_STATUS_NO_MEMORY; }