summaryrefslogtreecommitdiff
path: root/source3/winbindd
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2013-08-23 12:33:53 +0200
committerGünther Deschner <gd@samba.org>2013-08-29 16:57:51 +0200
commit57d5336969d089d063abce8db2fe090e7a363bc9 (patch)
tree9f153339c52df7af51f77726f3ff893fa76bf9ad /source3/winbindd
parentedca1f9d4828281eb69b606dafd92f75f66fc984 (diff)
downloadsamba-57d5336969d089d063abce8db2fe090e7a363bc9.tar.gz
samba-57d5336969d089d063abce8db2fe090e7a363bc9.tar.bz2
samba-57d5336969d089d063abce8db2fe090e7a363bc9.zip
s3-winbindd: Fix memory leak in ads_cached_connection().
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/winbindd')
-rw-r--r--source3/winbindd/winbindd_ads.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/winbindd/winbindd_ads.c b/source3/winbindd/winbindd_ads.c
index 5e6bb92f14..924bc83525 100644
--- a/source3/winbindd/winbindd_ads.c
+++ b/source3/winbindd/winbindd_ads.c
@@ -220,7 +220,7 @@ static ADS_STRUCT *ads_cached_connection(struct winbindd_domain *domain)
domain->name, NULL,
password, realm,
WINBINDD_PAM_AUTH_KRB5_RENEW_TIME);
-
+ SAFE_FREE(realm);
if (!ADS_ERR_OK(status)) {
/* if we get ECONNREFUSED then it might be a NT4