s3:rpc_client: fix a leaked talloc_stackframe
authorGregor Beck <gbeck@sernet.de>
Fri, 1 Nov 2013 07:54:27 +0000 (08:54 +0100)
committerAndreas Schneider <asn@samba.org>
Mon, 4 Nov 2013 09:38:50 +0000 (10:38 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=10241

Signed-off-by: Gregor Beck <gbeck@sernet.de>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/rpc_client/cli_pipe.c

index 48ed92ce50a1faf1b7ff82cc564303e1ba1e8f16..13423540ecfc1419f5e1f68221449f6ce7e2b2ce 100644 (file)
@@ -2301,7 +2301,8 @@ static NTSTATUS rpc_pipe_get_tcp_port(const char *host,
        if (ndr_syntax_id_equal(&table->syntax_id,
                                &ndr_table_epmapper.syntax_id)) {
                *pport = 135;
-               return NT_STATUS_OK;
+               status = NT_STATUS_OK;
+               goto done;
        }
 
        /* open the connection to the endpoint mapper */