From: Jim McDonough Date: Fri, 4 Dec 2009 17:31:53 +0000 (-0500) Subject: s3: bug #6967: Prevent glibc error on net ads join: X-Git-Tag: samba-4.0.0alpha10~92 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=265e4dfbb614398cffc5619a9800fc85f96e5438;p=thirdparty%2Fsamba.git s3: bug #6967: Prevent glibc error on net ads join: talloc()ed memory should not be SAFE_FREE()ed. Signed-off-by: Jim McDonough --- diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index bb8d43c96f5..4005ed66002 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -2089,7 +2089,7 @@ ADS_STATUS ads_move_machine_acct(ADS_STRUCT *ads, const char *machine_name, done: ads_msgfree(ads, res); SAFE_FREE(filter); - SAFE_FREE(computer_dn); + TALLOC_FREE(computer_dn); SAFE_FREE(computer_rdn); if (!ADS_ERR_OK(rc)) {