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:
a627d69
)
Fixed memory leak in cli_lsa_enum_trust_dom(). Use talloc_strdup() instead
author
Tim Potter
<tpot@samba.org>
Thu, 4 Apr 2002 06:10:22 +0000
(06:10 +0000)
committer
Tim Potter
<tpot@samba.org>
Thu, 4 Apr 2002 06:10:22 +0000
(06:10 +0000)
of strdup().
source/libsmb/cli_lsarpc.c
patch
|
blob
|
history
diff --git
a/source/libsmb/cli_lsarpc.c
b/source/libsmb/cli_lsarpc.c
index 90b1cc8d69bf176f95e21406426d1155f3ba2e2b..014dc7ae313e4607b9f1342968c9d2bcb40a1b23 100644
(file)
--- a/
source/libsmb/cli_lsarpc.c
+++ b/
source/libsmb/cli_lsarpc.c
@@
-607,7
+607,7
@@
NTSTATUS cli_lsa_enum_trust_dom(struct cli_state *cli, TALLOC_CTX *mem_ctx,
unistr2_to_ascii(tmp, &r.uni_domain_name[i],
sizeof(tmp) - 1);
- (*domain_names)[i] = strdup(tmp);
+ (*domain_names)[i] =
talloc_
strdup(tmp);
sid_copy(&(*domain_sids)[i], &r.domain_sid[i].sid);
}
}