From 1b12b48a093147036e85c2fd48eda0d0fb55f385 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Wed, 21 Jun 2006 23:43:33 +0000 Subject: r16452: Fix memleak in the CLDAP processing (found by valgrind). Guenther (This used to be commit 479dec68459df606ff566ac86eb3b4bbbd2ca77a) --- source3/libads/cldap.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- cgit