git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8389903
)
r3434: Fix memleak
author
Volker Lendecke
<vlendec@samba.org>
Mon, 1 Nov 2004 13:12:09 +0000
(13:12 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:05:10 +0000
(13:05 -0500)
(This used to be commit
0a12cc4cadf7c1e97282a0d8ab2f486536987a77
)
source4/librpc/rpc/dcerpc_util.c
patch
|
blob
|
history
diff --git
a/source4/librpc/rpc/dcerpc_util.c
b/source4/librpc/rpc/dcerpc_util.c
index c484a2618c12b32007667d1b85b85aa73632c00b..55818e28fe473bfb984b4a734692798b47a71065 100644
(file)
--- a/
source4/librpc/rpc/dcerpc_util.c
+++ b/
source4/librpc/rpc/dcerpc_util.c
@@
-185,7
+185,7
@@
static const struct {
*/
const char *dcerpc_binding_string(TALLOC_CTX *mem_ctx, const struct dcerpc_binding *b)
{
- char *s =
NULL
;
+ char *s =
talloc_strdup(mem_ctx, "")
;
int i;
const char *t_name=NULL;
@@
-199,7
+199,8
@@
const char *dcerpc_binding_string(TALLOC_CTX *mem_ctx, const struct dcerpc_bindi
}
if (!uuid_all_zero(&b->object)) {
- s = talloc_asprintf(mem_ctx, "%s@", GUID_string(mem_ctx, &b->object));
+ s = talloc_asprintf(s, "%s@",
+ GUID_string(mem_ctx, &b->object));
}
s = talloc_asprintf_append(s, "%s:", t_name);