summaryrefslogtreecommitdiffstats
path: root/source
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
commit9daf41c41f901b46d6016c6ec63773d0b7cec617 (patch)
tree9f1187f9c00cf528a100415ccf1b7857a06961f5 /source
parentfebd966b10b23238c93444256b8ad30b50b20ef8 (diff)
downloadsamba-9daf41c41f901b46d6016c6ec63773d0b7cec617.tar.gz
samba-9daf41c41f901b46d6016c6ec63773d0b7cec617.tar.xz
samba-9daf41c41f901b46d6016c6ec63773d0b7cec617.zip
Fix memory leak of the key.
Diffstat (limited to 'source')
-rw-r--r--source/lib/ldap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/lib/ldap.c b/source/lib/ldap.c
index 73ff50e1591..d0e72c48443 100644
--- a/source/lib/ldap.c
+++ b/source/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;