Skip to content

Commit

Permalink
Merge pull request #1288 from zodf0055980/master
Browse files Browse the repository at this point in the history
Free p_tcd_marker_info to avoid memory leak
  • Loading branch information
rouault committed Nov 27, 2020
2 parents 0c0f27f + 4f48779 commit a2b2980
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lib/openjp2/tcd.c
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 a2b2980

Please sign in to comment.