summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-09-13 16:21:48 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:51:43 -0500
commita4743f3a76dc88f765f9bc5dde8054b60d3045cc (patch)
treed2b6611c374dfa5d5084ac3a308b7dfe1302c16b
parent5606e85d74d4dd9eb8616d497aaaad07f7e7d792 (diff)
downloadsamba-a4743f3a76dc88f765f9bc5dde8054b60d3045cc.tar.gz
samba-a4743f3a76dc88f765f9bc5dde8054b60d3045cc.tar.bz2
samba-a4743f3a76dc88f765f9bc5dde8054b60d3045cc.zip
r18480: Doh ! Double-free of hostnameDN.
Jeremy. (This used to be commit f8984fa8b706bb76559e447b30a201e1cc2871b6)
-rw-r--r--source3/libads/ldap.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c
index 7ea605df60..6b18bbf594 100644
--- a/source3/libads/ldap.c
+++ b/source3/libads/ldap.c
@@ -2922,7 +2922,6 @@ ADS_STATUS ads_leave_realm(ADS_STRUCT *ads, const char *hostname)
DEBUG(3,("ldap_delete_ext_s succeeded with error code %d\n", rc));
}
- ads_memfree(ads, hostnameDN);
if (rc != LDAP_SUCCESS) {
const char *attrs[] = { "cn", NULL };
LDAPMessage *msg_sub;