summaryrefslogtreecommitdiff
path: root/source3/lib/ldap.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/ldap.c')
-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;