From 410dfc917f3471aec65c43f5ba421062f64496f4 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 5 Dec 2001 10:44:30 +0000 Subject: fixed a minor password memory leak (This used to be commit 5985d7e6eec1eb80d8d7470ee2ceda8981c7410c) --- source3/libads/ldap.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/libads/ldap.c') 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); } -- cgit