summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorTim Potter <tpot@samba.org>2001-05-11 07:04:47 +0000
committerTim Potter <tpot@samba.org>2001-05-11 07:04:47 +0000
commit862fe3b7ede1ff2214e9129e10820d7fa67681bc (patch)
tree7c99713779fa629c32c6b9a5ccd15aee7e6ae697 /source3/libsmb
parentc61e75e3e56186c250de55c655a548de8ccb71eb (diff)
downloadsamba-862fe3b7ede1ff2214e9129e10820d7fa67681bc.tar.gz
samba-862fe3b7ede1ff2214e9129e10820d7fa67681bc.tar.bz2
samba-862fe3b7ede1ff2214e9129e10820d7fa67681bc.zip
Memory leak fixes plus general cleanup.
(This used to be commit 48688c4592d03d6404631a7d57701f0af38cfb2d)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/cli_lsarpc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/libsmb/cli_lsarpc.c b/source3/libsmb/cli_lsarpc.c
index f60a0f960c..00c5ac9a16 100644
--- a/source3/libsmb/cli_lsarpc.c
+++ b/source3/libsmb/cli_lsarpc.c
@@ -278,7 +278,7 @@ uint32 cli_lsa_lookup_sids(struct cli_state *cli, TALLOC_CTX *mem_ctx,
"%s%s%s", dom_name, dom_name[0] ?
"\\" : "", name);
- (*names)[i] = strdup(full_name);
+ (*names)[i] = talloc_strdup(mem_ctx, full_name);
(*types)[i] = t_names.name[i].sid_name_use;
} else {
(*names)[i] = NULL;
@@ -436,6 +436,9 @@ uint32 cli_lsa_query_info_policy(struct cli_state *cli, TALLOC_CTX *mem_ctx,
/* Return output parameters */
+ ZERO_STRUCTP(domain_sid);
+ domain_name[0] = '\0';
+
switch (info_class) {
case 3: