summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorGregor Beck <gbeck@sernet.de>2011-06-21 08:02:53 +0200
committerStefan Metzmacher <metze@samba.org>2011-07-01 11:23:49 +0200
commit796c7ab282f11ad46bb5e90d721c54223045540f (patch)
tree50fe6181989b4b1332f1a5ac1a4ee5d9dd65289c /source3
parent7eb9c70342a86d444608317d606776e745723cb3 (diff)
downloadsamba-796c7ab282f11ad46bb5e90d721c54223045540f.tar.gz
samba-796c7ab282f11ad46bb5e90d721c54223045540f.tar.bz2
samba-796c7ab282f11ad46bb5e90d721c54223045540f.zip
s3:smbldap: let smbldap_free_struct do what it claims to
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/smbldap.c3
1 files changed, 1 insertions, 2 deletions
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 */
}