summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/libads/ldap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index bfa5bbd9df..60f620d2f4 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -72,6 +72,7 @@ int ads_connect(ADS_STRUCT *ads)
if (ads->password) {
/* the machine acct password might have changed */
+ free(ads->password);
ads->password = secrets_fetch_machine_password();
kerberos_kinit_password(ads);
}