]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
librpc: Fix a talloc_stackframe() leak
authorVolker Lendecke <vl@samba.org>
Sat, 14 Nov 2020 09:12:20 +0000 (10:12 +0100)
committerJeremy Allison <jra@samba.org>
Mon, 30 Nov 2020 22:24:37 +0000 (22:24 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/librpc/rpc/dcerpc_ep.c

index 6ac098c1b03e0cfc535a949ab42d131f8919df3b..454e6bd66372173ffc40f0589206c70bae3159e5 100644 (file)
@@ -100,7 +100,8 @@ static NTSTATUS ep_register(TALLOC_CTX *mem_ctx,
                                                       0,
                                                       &local);
                if (rc < 0) {
-                       return NT_STATUS_NO_MEMORY;
+                       status = NT_STATUS_NO_MEMORY;
+                       goto done;
                }
 
                status = rpcint_binding_handle(tmp_ctx,