winbind: Fix CID 1398531 Resource leak
authorVolker Lendecke <vl@samba.org>
Tue, 10 Jan 2017 13:24:22 +0000 (13:24 +0000)
committerJeremy Allison <jra@samba.org>
Tue, 10 Jan 2017 23:49:22 +0000 (00:49 +0100)
Not really a leak due to talloc, but this way it's clear

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/winbindd_samr.c

index dd674965f17b02d0f18cda54d049566cbe642220..224f10583482ef1ad6298b55f77f859c98b31f76 100644 (file)
@@ -208,6 +208,7 @@ done:
                dcerpc_samr_Close(b, mem_ctx, &dom_pol, &result);
        }
 
+       TALLOC_FREE(rids);
        TALLOC_FREE(tmp_ctx);
        return status;
 }