Skip to content

Commit

Permalink
fix freeing frame before handling (#463)
Browse files Browse the repository at this point in the history
Co-authored-by: hadif <[email protected]>
  • Loading branch information
2 people authored and gwanglst committed Aug 27, 2023
1 parent f4ab071 commit 9db6bf3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/liblsquic/lsquic_di_hash.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
read_offset);
assert(ins != INS_FRAME_OVERLAP);
/* NOTE: Only release packet and frame for INS_FRAME_OK,
* other cases are handled by caller */
/* NOTE: other cases are handled by caller */
if (ins == INS_FRAME_OK)
{
lsquic_packet_in_put(hdi->hdi_conn_pub->mm, new_frame->packet_in);
lsquic_malo_put(new_frame);
}
return ins;
}
Expand Down

0 comments on commit 9db6bf3

Please sign in to comment.