aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2012-07-12 13:38:44 +0200
committerAndreas Steffen <andreas.steffen@strongswan.org>2012-07-12 21:26:18 +0200
commitb6e23b24f30e0f3297fd3b898fff0c0501fa529b (patch)
treee4c12585a365d031ca847d1ff0d77101b0a22884 /src
parentea67a75b98ff7ca0df4d48a1dc6522f1ba58b322 (diff)
downloadstrongswan-b6e23b24f30e0f3297fd3b898fff0c0501fa529b.tar.bz2
strongswan-b6e23b24f30e0f3297fd3b898fff0c0501fa529b.tar.xz
fixed memory leak in the IETF standard error handling
Diffstat (limited to 'src')
-rw-r--r--src/libimcv/pa_tnc/pa_tnc_msg.c3
1 files changed, 2 insertions, 1 deletions
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;
}
}