diff options
author | Günther Deschner <gd@samba.org> | 2007-02-14 20:52:23 +0000 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2007-02-14 20:52:23 +0000 |
commit | 9dddb594cdf816b16ed5eb83dbd1bc761a7b600f (patch) | |
tree | d6cddfe5ab4ca8716272e70f6e53845014e1a224 | |
parent | e8a08de8edf9cb1b4882889c9085b1dc8d3965eb (diff) | |
download | samba-9dddb594cdf816b16ed5eb83dbd1bc761a7b600f.tar.gz samba-9dddb594cdf816b16ed5eb83dbd1bc761a7b600f.tar.xz samba-9dddb594cdf816b16ed5eb83dbd1bc761a7b600f.zip |
r21349: Fix memleak in ads_upn_suffixes().
Guenther
-rw-r--r-- | source/libads/ldap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/libads/ldap.c b/source/libads/ldap.c index d72cb4af263..949d167013f 100644 --- a/source/libads/ldap.c +++ b/source/libads/ldap.c @@ -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); |