mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-08 00:02:03 -04:00
fixed memory leak in error case
This commit is contained in:
parent
965fce31c3
commit
7d17eeb7ef
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user