Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resource leak in opj_j2k_encode in case of failure #598

Closed
mayeut opened this issue Sep 17, 2015 · 0 comments
Closed

Resource leak in opj_j2k_encode in case of failure #598

mayeut opened this issue Sep 17, 2015 · 0 comments
Assignees
Labels
Milestone

Comments

@mayeut
Copy link
Collaborator

mayeut commented Sep 17, 2015

/* now copy this data into the tile component */
if (! opj_tcd_copy_tile_data(p_j2k->m_tcd,l_current_data,l_current_tile_size)) {
  opj_event_msg(p_manager, EVT_ERROR, "Size mismatch between tile data and sent data." );
  return OPJ_FALSE;
}

and

if (! opj_j2k_post_write_tile (p_j2k,p_stream,p_manager)) {
  return OPJ_FALSE;
}

l_current_data is not freed

@mayeut mayeut added the bug label Sep 17, 2015
@mayeut mayeut self-assigned this Sep 17, 2015
@mayeut mayeut added this to the OPJ v2.1.1 milestone Sep 17, 2015
@mayeut mayeut closed this as completed in c16c917 Sep 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant