From 57d5336969d089d063abce8db2fe090e7a363bc9 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 23 Aug 2013 12:33:53 +0200 Subject: s3-winbindd: Fix memory leak in ads_cached_connection(). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Guenther Signed-off-by: Günther Deschner Reviewed-by: Michael Adam --- source3/winbindd/winbindd_ads.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/winbindd/winbindd_ads.c') 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 -- cgit