]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
winbind: Fix CID 1398533 Resource leak
authorVolker Lendecke <vl@samba.org>
Tue, 10 Jan 2017 13:26:13 +0000 (13:26 +0000)
committerJeremy Allison <jra@samba.org>
Tue, 10 Jan 2017 23:49:22 +0000 (00:49 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/winbindd/winbindd_rpc.c

index bb8af45c896a56d7372db7cd42123d1c7b748bb9..fcc636620a48a2a8f7aad5199a60117b65b72da2 100644 (file)
@@ -77,6 +77,7 @@ NTSTATUS rpc_query_user_list(TALLOC_CTX *mem_ctx,
                }
                if (!NT_STATUS_IS_OK(result)) {
                        if (!NT_STATUS_EQUAL(result, STATUS_MORE_ENTRIES)) {
+                               TALLOC_FREE(rids);
                                return result;
                        }
                }