summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-04-02 18:47:51 +0200
committerGünther Deschner <gd@samba.org>2009-04-02 22:50:44 +0200
commit168eb23252c14234d09f7038b9894edf86e0efe1 (patch)
treea8cf69b5f27325b14836ebe3ab5852e7c67911fe
parent3bbad34a02350c96cb44d53da510c6273b6910d7 (diff)
downloadsamba-168eb23252c14234d09f7038b9894edf86e0efe1.tar.gz
samba-168eb23252c14234d09f7038b9894edf86e0efe1.tar.bz2
samba-168eb23252c14234d09f7038b9894edf86e0efe1.zip
s3-lsa: don't SAFE_FREE talloced structs.
Guenther
-rw-r--r--source3/rpc_server/srv_lsa_nt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c
index 5fdcaf2d4a..0eee4a903b 100644
--- a/source3/rpc_server/srv_lsa_nt.c
+++ b/source3/rpc_server/srv_lsa_nt.c
@@ -1434,14 +1434,14 @@ NTSTATUS _lsa_EnumAccounts(pipes_struct *p,
sids = TALLOC_ZERO_ARRAY(p->mem_ctx, struct lsa_SidPtr,
num_entries - *r->in.resume_handle);
if (!sids) {
- SAFE_FREE(sid_list);
+ talloc_free(sid_list);
return NT_STATUS_NO_MEMORY;
}
for (i = *r->in.resume_handle, j = 0; i < num_entries; i++, j++) {
sids[j].sid = sid_dup_talloc(p->mem_ctx, &sid_list[i]);
if (!sids[j].sid) {
- SAFE_FREE(sid_list);
+ talloc_free(sid_list);
return NT_STATUS_NO_MEMORY;
}
}