mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
r21349: Fix memleak in ads_upn_suffixes().
Guenther
(This used to be commit 8462f323cf
)
This commit is contained in:
parent
6663fa6bdc
commit
08726ffcd4
@ -2638,9 +2638,12 @@ ADS_STATUS ads_upn_suffixes(ADS_STRUCT *ads, TALLOC_CTX *mem_ctx, char **suffixe
|
||||
|
||||
config_context = ads_pull_string(ads, mem_ctx, res, "configurationNamingContext");
|
||||
if (config_context == NULL) {
|
||||
ads_msgfree(ads, res);
|
||||
return ADS_ERROR(LDAP_NO_MEMORY);
|
||||
}
|
||||
|
||||
ads_msgfree(ads, res);
|
||||
|
||||
base = talloc_asprintf(mem_ctx, "cn=Partitions,%s", config_context);
|
||||
if (base == NULL) {
|
||||
return ADS_ERROR(LDAP_NO_MEMORY);
|
||||
|
Loading…
Reference in New Issue
Block a user