summaryrefslogtreecommitdiff
path: root/source3/passdb
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-03-17 10:59:11 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-03-17 10:59:11 +0000
commita9034ec179239274bdb0f7dffbe87c11c4a0539d (patch)
tree961e1c9071ead1f4ae62850e7cdc9478ce2e8ba4 /source3/passdb
parent99e5d02f747dcc44800b2e47fa45aa1dff9c5bf7 (diff)
downloadsamba-a9034ec179239274bdb0f7dffbe87c11c4a0539d.tar.gz
samba-a9034ec179239274bdb0f7dffbe87c11c4a0539d.tar.bz2
samba-a9034ec179239274bdb0f7dffbe87c11c4a0539d.zip
Fix invalid SAFE_FREE() of talloc()ed memory.
Andrew Bartlett (This used to be commit 21add5f97d0d112094e34a02e6319991a1d2af4d)
Diffstat (limited to 'source3/passdb')
-rw-r--r--source3/passdb/secrets.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c
index 4b0913a624..4c9802dd29 100644
--- a/source3/passdb/secrets.c
+++ b/source3/passdb/secrets.c
@@ -535,7 +535,6 @@ NTSTATUS secrets_get_trusted_domains(TALLOC_CTX* ctx, int* enum_ctx, unsigned in
if (size != packed_size) {
DEBUG(2, ("Secrets record %s is invalid!\n", secrets_key));
- SAFE_FREE(pass);
if (size) SAFE_FREE(packed_pass);
return NT_STATUS_UNSUCCESSFUL;
@@ -554,8 +553,6 @@ NTSTATUS secrets_get_trusted_domains(TALLOC_CTX* ctx, int* enum_ctx, unsigned in
dom = talloc_zero(ctx, sizeof(*dom));
if (!dom) {
/* free returned tdb record */
- SAFE_FREE(pass);
-
return NT_STATUS_NO_MEMORY;
}