From 7eb9c70342a86d444608317d606776e745723cb3 Mon Sep 17 00:00:00 2001 From: Gregor Beck Date: Tue, 21 Jun 2011 08:00:59 +0200 Subject: s3:smbldap: free the idle event scheduled in smbldap_open in smbldap_close Signed-off-by: Stefan Metzmacher --- source3/lib/smbldap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/lib/smbldap.c b/source3/lib/smbldap.c index 3d159d73d9..76d2899e50 100644 --- a/source3/lib/smbldap.c +++ b/source3/lib/smbldap.c @@ -1332,6 +1332,8 @@ static NTSTATUS smbldap_close(struct smbldap_state *ldap_state) smbldap_delete_state(ldap_state); + TALLOC_FREE(ldap_state->idle_event); + DEBUG(5,("The connection to the LDAP server was closed\n")); /* maybe free the results here --metze */ @@ -1846,7 +1848,6 @@ void smbldap_free_struct(struct smbldap_state **ldap_state) SAFE_FREE((*ldap_state)->bind_dn); SAFE_FREE((*ldap_state)->bind_secret); - TALLOC_FREE((*ldap_state)->idle_event); *ldap_state = NULL; -- cgit