git.samba.org
/
import
/
samba-svnimport.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8a08de
)
r21349: Fix memleak in ads_upn_suffixes().
author
Günther Deschner
<gd@samba.org>
Wed, 14 Feb 2007 20:52:23 +0000
(20:52 +0000)
committer
Günther Deschner
<gd@samba.org>
Wed, 14 Feb 2007 20:52:23 +0000
(20:52 +0000)
Guenther
source/libads/ldap.c
patch
|
blob
|
history
diff --git
a/source/libads/ldap.c
b/source/libads/ldap.c
index d72cb4af2636bb6ff2db7aeea33a45793b077a93..949d167013f03e7ce38b2465705acd0bd6d654de 100644
(file)
--- 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);