diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-12-05 10:44:30 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-12-05 10:44:30 +0000 |
commit | 5985d7e6eec1eb80d8d7470ee2ceda8981c7410c (patch) | |
tree | a27a485e6760b0e0af4abe8c49422be6aa9b9b77 /source/libads/ldap.c | |
parent | 45c328800e42ba01c8d6113c0691546804137677 (diff) | |
download | samba-5985d7e6eec1eb80d8d7470ee2ceda8981c7410c.tar.gz samba-5985d7e6eec1eb80d8d7470ee2ceda8981c7410c.tar.xz samba-5985d7e6eec1eb80d8d7470ee2ceda8981c7410c.zip |
fixed a minor password memory leak
Diffstat (limited to 'source/libads/ldap.c')
-rw-r--r-- | source/libads/ldap.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/libads/ldap.c b/source/libads/ldap.c index bfa5bbd9df2..60f620d2f4d 100644 --- a/source/libads/ldap.c +++ b/source/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); } |