From 9daf41c41f901b46d6016c6ec63773d0b7cec617 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sun, 6 Apr 2003 13:00:46 +0000 Subject: Fix memory leak of the key. --- source/lib/ldap.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/lib') 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; -- cgit