mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
fix freeing frame before handling (#463)
Co-authored-by: hadif <hadif@checkpoint.com>
This commit is contained in:
parent
f4ab071d0f
commit
9db6bf3159
1 changed files with 1 additions and 3 deletions
|
@ -438,12 +438,10 @@ hash_di_insert_frame (struct data_in *data_in,
|
||||||
ins = lsquic_data_in_hash_insert_data_frame(data_in, data_frame,
|
ins = lsquic_data_in_hash_insert_data_frame(data_in, data_frame,
|
||||||
read_offset);
|
read_offset);
|
||||||
assert(ins != INS_FRAME_OVERLAP);
|
assert(ins != INS_FRAME_OVERLAP);
|
||||||
/* NOTE: Only release packet and frame for INS_FRAME_OK,
|
/* NOTE: other cases are handled by caller */
|
||||||
* other cases are handled by caller */
|
|
||||||
if (ins == INS_FRAME_OK)
|
if (ins == INS_FRAME_OK)
|
||||||
{
|
{
|
||||||
lsquic_packet_in_put(hdi->hdi_conn_pub->mm, new_frame->packet_in);
|
lsquic_packet_in_put(hdi->hdi_conn_pub->mm, new_frame->packet_in);
|
||||||
lsquic_malo_put(new_frame);
|
|
||||||
}
|
}
|
||||||
return ins;
|
return ins;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue