mirror of
https://github.com/samba-team/samba.git
synced 2025-12-05 12:23:50 +03:00
r18480: Doh ! Double-free of hostnameDN.
Jeremy.
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
4c54b75076
commit
f8984fa8b7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user