summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2002-04-04 06:10:22 +0000
committerTim Potter <tpot@samba.org>2002-04-04 06:10:22 +0000
commit3d3ec9f4fdddfad8432cdd77fb4a30ad49552397 (patch)
tree1b09596c13c7a0e98a2d1116fb015a15bfc6f8d3 /source3/libsmb
parentadbe65f21a1a06c7b8112e7f6b3b78a22b0f25df (diff)
downloadsamba-3d3ec9f4fdddfad8432cdd77fb4a30ad49552397.tar.gz
samba-3d3ec9f4fdddfad8432cdd77fb4a30ad49552397.tar.bz2
samba-3d3ec9f4fdddfad8432cdd77fb4a30ad49552397.zip
Fixed memory leak in cli_lsa_enum_trust_dom(). Use talloc_strdup() instead
of strdup(). (This used to be commit fb32f7199b8a487757b509555e5a69ec5cae8fbd)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/cli_lsarpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/cli_lsarpc.c b/source3/libsmb/cli_lsarpc.c
index 90b1cc8d69..014dc7ae31 100644
--- a/source3/libsmb/cli_lsarpc.c
+++ b/source3/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);
}
}