From c80e519cdc5ed4db04d4102ce71436b16be648ea Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 22 Feb 2011 12:15:09 +0100 Subject: s3-librpc: Free memory we don't need. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Günther Deschner --- source3/librpc/rpc/dcerpc_ep.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/librpc/rpc') diff --git a/source3/librpc/rpc/dcerpc_ep.c b/source3/librpc/rpc/dcerpc_ep.c index bda24a6865..7e980e9bf4 100644 --- a/source3/librpc/rpc/dcerpc_ep.c +++ b/source3/librpc/rpc/dcerpc_ep.c @@ -83,6 +83,7 @@ NTSTATUS dcerpc_binding_vector_create(TALLOC_CTX *mem_ctx, break; case NCACN_IP_TCP: if (port == 0) { + talloc_free(b); continue; } @@ -96,6 +97,7 @@ NTSTATUS dcerpc_binding_vector_create(TALLOC_CTX *mem_ctx, case NCALRPC: /* TODO */ default: + talloc_free(b); continue; } -- cgit