diff options
author | Gregor Beck <gbeck@sernet.de> | 2011-06-21 08:00:59 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-07-01 11:23:43 +0200 |
commit | 7eb9c70342a86d444608317d606776e745723cb3 (patch) | |
tree | cedad700aa7f4484ef886f94c949a70b2aebf512 | |
parent | 343ef46b9b764bfab93bad3fdcb4031adcc6f7db (diff) | |
download | samba-7eb9c70342a86d444608317d606776e745723cb3.tar.gz samba-7eb9c70342a86d444608317d606776e745723cb3.tar.bz2 samba-7eb9c70342a86d444608317d606776e745723cb3.zip |
s3:smbldap: free the idle event scheduled in smbldap_open in smbldap_close
Signed-off-by: Stefan Metzmacher <metze@samba.org>
-rw-r--r-- | source3/lib/smbldap.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; |