From: Andreas Steffen Date: Thu, 12 Jul 2012 11:38:44 +0000 (+0200) Subject: fixed memory leak in the IETF standard error handling X-Git-Tag: 5.0.1~405 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6e23b24f30e0f3297fd3b898fff0c0501fa529b;p=thirdparty%2Fstrongswan.git fixed memory leak in the IETF standard error handling --- diff --git a/src/libimcv/pa_tnc/pa_tnc_msg.c b/src/libimcv/pa_tnc/pa_tnc_msg.c index 4c44693dba..63ad94e9da 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; } }