summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-12-05 10:44:30 +0000
committerAndrew Tridgell <tridge@samba.org>2001-12-05 10:44:30 +0000
commit410dfc917f3471aec65c43f5ba421062f64496f4 (patch)
treebb65250226b01e4572afc83fdd1ab247d9b7cbde /source3/libads
parenta87b9bf561e24ff4b42f79a9a95a82f8ec8c9f4a (diff)
downloadsamba-410dfc917f3471aec65c43f5ba421062f64496f4.tar.gz
samba-410dfc917f3471aec65c43f5ba421062f64496f4.tar.bz2
samba-410dfc917f3471aec65c43f5ba421062f64496f4.zip
fixed a minor password memory leak
(This used to be commit 5985d7e6eec1eb80d8d7470ee2ceda8981c7410c)
Diffstat (limited to 'source3/libads')
-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);
}