aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Steffen <andreas.steffen@strongswan.org>2012-12-09 17:07:51 +0100
committerAndreas Steffen <andreas.steffen@strongswan.org>2012-12-09 17:07:51 +0100
commit7d17eeb7ef79f47db2e1dfe7f5ae9d484b17f7b6 (patch)
tree962fdc923dffb5936a66aef00844d377a02ace7c /src
parent965fce31c3354d47170960f1c2d65ff67eeb172c (diff)
downloadstrongswan-7d17eeb7ef79f47db2e1dfe7f5ae9d484b17f7b6.tar.bz2
strongswan-7d17eeb7ef79f47db2e1dfe7f5ae9d484b17f7b6.tar.xz
fixed memory leak in error case
Diffstat (limited to 'src')
-rw-r--r--src/libpts/plugins/imv_attestation/imv_attestation.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libpts/plugins/imv_attestation/imv_attestation.c b/src/libpts/plugins/imv_attestation/imv_attestation.c
index 834366d5b..237300f31 100644
--- a/src/libpts/plugins/imv_attestation/imv_attestation.c
+++ b/src/libpts/plugins/imv_attestation/imv_attestation.c
@@ -183,7 +183,6 @@ static TNC_Result send_message(imv_state_t *state, imv_msg_t *out_msg)
}
else
{
- out_msg->delete_attributes(out_msg);
result = TNC_RESULT_FATAL;
}
@@ -318,6 +317,7 @@ static TNC_Result receive_message(imv_state_t *state, imv_msg_t *in_msg)
TNC_IMV_EVALUATION_RESULT_ERROR);
out_msg->delete_attributes(out_msg);
result = out_msg->send_assessment(out_msg);
+ out_msg->destroy(out_msg);
if (result != TNC_RESULT_SUCCESS)
{
return result;