Skip to content

Commit

Permalink
Free p_tcd_marker_info to avoid memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
zodf0055980 committed Nov 25, 2020
1 parent 649298d commit 4f48779
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/openjp2/tcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -2851,6 +2851,7 @@ void opj_tcd_marker_info_destroy(opj_tcd_marker_info_t *p_tcd_marker_info)
{
if (p_tcd_marker_info) {
opj_free(p_tcd_marker_info->p_packet_size);
opj_free(p_tcd_marker_info);
}
}

Expand Down

0 comments on commit 4f48779

Please sign in to comment.