summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-03-09 21:15:10 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:11:12 -0500
commitb3d058a0ec9fe6b11246b2ed5a333a1e82ef24b0 (patch)
tree653024ab790325999190ac5e0946c3b7623c68fa
parent56a99b1d1c9382aee346cc04b0979148ff485bc8 (diff)
downloadsamba-b3d058a0ec9fe6b11246b2ed5a333a1e82ef24b0.tar.gz
samba-b3d058a0ec9fe6b11246b2ed5a333a1e82ef24b0.tar.bz2
samba-b3d058a0ec9fe6b11246b2ed5a333a1e82ef24b0.zip
r14103: Fix a memleak found by valgrind (!!)
(This used to be commit b880602c4c1b13fbb5931b8e00c22209a722e0d5)
-rw-r--r--source3/passdb/secrets.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/passdb/secrets.c b/source3/passdb/secrets.c
index f7bc044916..a288e7d169 100644
--- a/source3/passdb/secrets.c
+++ b/source3/passdb/secrets.c
@@ -412,6 +412,7 @@ BOOL secrets_store_trusted_domain_password(const char* domain, const char* pwd,
strncpy_w(pass.uni_name, uni_dom_name, sizeof(pass.uni_name) - 1);
pass.uni_name_len = strlen_w(uni_dom_name)+1;
+ SAFE_FREE(uni_dom_name);
/* last change time */
pass.mod_time = time(NULL);