Merge pull request #1288 from zodf0055980/master

Free p_tcd_marker_info to avoid memory leak
This commit is contained in:
Even Rouault 2020-11-27 14:25:11 +01:00 committed by GitHub
commit a2b2980a4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -2851,6 +2851,7 @@ void opj_tcd_marker_info_destroy(opj_tcd_marker_info_t *p_tcd_marker_info)
{ {
if (p_tcd_marker_info) { if (p_tcd_marker_info) {
opj_free(p_tcd_marker_info->p_packet_size); opj_free(p_tcd_marker_info->p_packet_size);
opj_free(p_tcd_marker_info);
} }
} }