git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a45353b
)
s3-librpc: Free memory we don't need.
author
Andreas Schneider
<asn@samba.org>
Tue, 22 Feb 2011 11:15:09 +0000
(12:15 +0100)
committer
Günther Deschner
<gd@samba.org>
Tue, 8 Mar 2011 10:41:28 +0000
(11:41 +0100)
Signed-off-by: Günther Deschner <gd@samba.org>
source3/librpc/rpc/dcerpc_ep.c
patch
|
blob
|
history
diff --git
a/source3/librpc/rpc/dcerpc_ep.c
b/source3/librpc/rpc/dcerpc_ep.c
index bda24a68654798bdd25014a798f37fb9d701642a..7e980e9bf4317fcfaf04d2a823307aa7ac932ff3 100644
(file)
--- 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;
}