fixed memory leak in error case

This commit is contained in:
Andreas Steffen 2012-12-09 17:07:51 +01:00
parent 965fce31c3
commit 7d17eeb7ef
1 changed files with 1 additions and 1 deletions

View File

@ -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;