From b6e23b24f30e0f3297fd3b898fff0c0501fa529b Mon Sep 17 00:00:00 2001 From: Andreas Steffen Date: Thu, 12 Jul 2012 13:38:44 +0200 Subject: [PATCH] fixed memory leak in the IETF standard error handling --- src/libimcv/pa_tnc/pa_tnc_msg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libimcv/pa_tnc/pa_tnc_msg.c b/src/libimcv/pa_tnc/pa_tnc_msg.c index 4c44693db..63ad94e9d 100644 --- a/src/libimcv/pa_tnc/pa_tnc_msg.c +++ b/src/libimcv/pa_tnc/pa_tnc_msg.c @@ -382,8 +382,9 @@ METHOD(pa_tnc_msg_t, process_ietf_std_errors, bool, break; } - /* remove the processed IETF standard error attribute */ + /* remove and delete the processed IETF standard error attribute */ this->attributes->remove_at(this->attributes, enumerator); + attr->destroy(attr); fatal_error = TRUE; } }