From 567e2a7822035486fb2554fbcb3d4d28771d1402 Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Thu, 14 Sep 2006 12:15:41 +0000 Subject: [PATCH] fixed memleak when receiving invalid certificate --- src/charon/sa/transactions/ike_auth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/charon/sa/transactions/ike_auth.c b/src/charon/sa/transactions/ike_auth.c index c30dde2a4..e440f5e5f 100644 --- a/src/charon/sa/transactions/ike_auth.c +++ b/src/charon/sa/transactions/ike_auth.c @@ -475,6 +475,7 @@ static void import_certificate(private_ike_auth_t *this, cert_payload_t *cert_pa } else { + cert->destroy(cert); this->logger->log(this->logger, CONTROL, "received end entity certificate is not trusted, discarded"); }