summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-04-06 13:00:46 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-04-06 13:00:46 +0000
commitc5ab17567cf6681f567b73ba8ed0653fbb64f453 (patch)
tree0b3fef30526fa3050a229bb1c0730ead7b323b2a /source3/lib
parent00a8443a5127dc9ffe9da5c073756edf6397dcbd (diff)
downloadsamba-c5ab17567cf6681f567b73ba8ed0653fbb64f453.tar.gz
samba-c5ab17567cf6681f567b73ba8ed0653fbb64f453.tar.bz2
samba-c5ab17567cf6681f567b73ba8ed0653fbb64f453.zip
Fix memory leak of the key.
(This used to be commit 9daf41c41f901b46d6016c6ec63773d0b7cec617)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/ldap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/lib/ldap.c b/source3/lib/ldap.c
index 73ff50e159..d0e72c4844 100644
--- a/source3/lib/ldap.c
+++ b/source3/lib/ldap.c
@@ -82,6 +82,7 @@ static BOOL smb_ldap_fetch_pw(char **dn, char** pw)
}
*pw=secrets_fetch(key, &size);
+ SAFE_FREE(key);
if (!size) {
/* Upgrade 2.2 style entry */
char *p;