summaryrefslogtreecommitdiff
path: root/source3/librpc
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-02-22 12:15:09 +0100
committerGünther Deschner <gd@samba.org>2011-03-08 11:41:28 +0100
commitc80e519cdc5ed4db04d4102ce71436b16be648ea (patch)
treeefa5e1dd6e64fe4437e03d0d2931367655eb0c0c /source3/librpc
parenta45353b3e2e0a8dd5f9055c50e0d38bce7dda22c (diff)
downloadsamba-c80e519cdc5ed4db04d4102ce71436b16be648ea.tar.gz
s3-librpc: Free memory we don't need.
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/librpc')
-rw-r--r--source3/librpc/rpc/dcerpc_ep.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/librpc/rpc/dcerpc_ep.c b/source3/librpc/rpc/dcerpc_ep.c
index bda24a68654..7e980e9bf43 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;
}