From 66e853875ec13481093bf79522004665fe66260d Mon Sep 17 00:00:00 2001 From: Gregor Beck Date: Tue, 21 Jun 2011 08:02:53 +0200 Subject: [PATCH] s3:smbldap: let smbldap_free_struct do what it claims to --- source3/lib/smbldap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source3/lib/smbldap.c b/source3/lib/smbldap.c index 7cd14848d6b..31a16b6a195 100644 --- a/source3/lib/smbldap.c +++ b/source3/lib/smbldap.c @@ -1847,8 +1847,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 */ } -- 2.11.4.GIT