diff options
author | Jim McDonough <jmcd@samba.org> | 2009-12-04 12:31:53 -0500 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2009-12-23 12:07:53 +0100 |
commit | c6d092c6638a1ca48e9b92b7017c0c3c08f85f77 (patch) | |
tree | b7aa78bd6f892826b101d750aebf63824ab3bb1f | |
parent | 9a66230da447d68597780a3f1c4cbe638e0ef576 (diff) | |
download | samba-c6d092c6638a1ca48e9b92b7017c0c3c08f85f77.tar.gz |
s3: Prevent glibc errors: talloc()ed memory should not be SAFE_FREE()ed.
Fix bug #6967 (net ads join with OU fails with glibc error on free()).
(cherry picked from commit 779ebd6a6800ceb0d192232b2ec9687115115c73)
-rw-r--r-- | source3/libads/ldap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libads/ldap.c b/source3/libads/ldap.c index 20133445057..1fb541d4e67 100644 --- a/source3/libads/ldap.c +++ b/source3/libads/ldap.c @@ -2076,7 +2076,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)) { |