1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

r16190: Fix more memleaks.

Guenther
This commit is contained in:
Günther Deschner 2006-06-13 13:41:04 +00:00 committed by Gerald (Jerry) Carter
parent e7d2b84aba
commit dfebcc8e19

View File

@ -1213,9 +1213,10 @@ char *ads_default_ou_string(ADS_STRUCT *ads, const char *wknguid)
status = ads_search_dn(ads, &res, base, attrs);
if (!ADS_ERR_OK(status)) {
DEBUG(1,("Failed while searching for: %s\n", base));
SAFE_FREE(base);
return NULL;
}
free(base);
SAFE_FREE(base);
if (ads_count_replies(ads, res) != 1) {
return NULL;
@ -1242,6 +1243,10 @@ char *ads_default_ou_string(ADS_STRUCT *ads, const char *wknguid)
free(s);
}
ads_memfree(ads, wkn_dn);
ldap_value_free(wkn_dn_exp);
ldap_value_free(bind_dn_exp);
return ret;
}