imv-test: Fixed memory leak in server retry use case

This commit is contained in:
Andreas Steffen 2017-05-28 20:05:52 +02:00
parent fca4e70bd3
commit c82be739bc
1 changed files with 2 additions and 0 deletions

View File

@ -188,6 +188,8 @@ static TNC_Result receive_msg(private_imv_test_agent_t *this, imv_state_t *state
if (retry)
{
test_state->set_rounds(test_state, rounds);
out_msg->destroy(out_msg);
return this->agent->request_handshake_retry(
this->agent->get_id(this->agent),
state->get_connection_id(state),