diff options
author | Andrew Bartlett <abartlet@samba.org> | 2003-04-06 13:00:46 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2003-04-06 13:00:46 +0000 |
commit | 9daf41c41f901b46d6016c6ec63773d0b7cec617 (patch) | |
tree | 9f1187f9c00cf528a100415ccf1b7857a06961f5 | |
parent | febd966b10b23238c93444256b8ad30b50b20ef8 (diff) | |
download | samba-9daf41c41f901b46d6016c6ec63773d0b7cec617.tar.gz samba-9daf41c41f901b46d6016c6ec63773d0b7cec617.tar.xz samba-9daf41c41f901b46d6016c6ec63773d0b7cec617.zip |
Fix memory leak of the key.
-rw-r--r-- | source/lib/ldap.c | 1 |
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; |