From 796c7ab282f11ad46bb5e90d721c54223045540f Mon Sep 17 00:00:00 2001 From: Gregor Beck Date: Tue, 21 Jun 2011 08:02:53 +0200 Subject: s3:smbldap: let smbldap_free_struct do what it claims to Signed-off-by: Stefan Metzmacher --- source3/lib/smbldap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/smbldap.c b/source3/lib/smbldap.c index 76d2899e50..41ba0e1b44 100644 --- a/source3/lib/smbldap.c +++ b/source3/lib/smbldap.c @@ -1848,8 +1848,7 @@ void smbldap_free_struct(struct smbldap_state **ldap_state) SAFE_FREE((*ldap_state)->bind_dn); SAFE_FREE((*ldap_state)->bind_secret); - - *ldap_state = NULL; + TALLOC_FREE(*ldap_state); /* No need to free any further, as it is talloc()ed */ } -- cgit