diff options
author | Günther Deschner <gd@samba.org> | 2006-06-21 23:43:33 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:18:54 -0500 |
commit | 1b12b48a093147036e85c2fd48eda0d0fb55f385 (patch) | |
tree | 2fa97fd3fb08af03a2efc97620f7f8b15da84935 /source3/libads | |
parent | 54ea3c23e3bfd25008198e85fdcc1f48b0325eab (diff) | |
download | samba-1b12b48a093147036e85c2fd48eda0d0fb55f385.tar.gz samba-1b12b48a093147036e85c2fd48eda0d0fb55f385.tar.bz2 samba-1b12b48a093147036e85c2fd48eda0d0fb55f385.zip |
r16452: Fix memleak in the CLDAP processing (found by valgrind).
Guenther
(This used to be commit 479dec68459df606ff566ac86eb3b4bbbd2ca77a)
Diffstat (limited to 'source3/libads')
-rw-r--r-- | source3/libads/cldap.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/libads/cldap.c b/source3/libads/cldap.c index f438f98599..11c083a56a 100644 --- a/source3/libads/cldap.c +++ b/source3/libads/cldap.c @@ -225,6 +225,7 @@ static int recv_cldap_netlogon(int sock, struct cldap_netlogon_reply *reply) asn1_end_tag(&data); if (data.has_error) { + asn1_free(&data); DEBUG(1,("Failed to parse cldap reply\n")); return -1; } @@ -262,6 +263,8 @@ static int recv_cldap_netlogon(int sock, struct cldap_netlogon_reply *reply) data_blob_free(&os3); data_blob_free(&blob); + asn1_free(&data); + return 0; } |