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

Should the destructor of decoder_context include more cleanups? #1166

Open
dlemstra opened this issue May 4, 2024 · 0 comments
Open

Should the destructor of decoder_context include more cleanups? #1166

dlemstra opened this issue May 4, 2024 · 0 comments

Comments

@dlemstra
Copy link
Contributor

dlemstra commented May 4, 2024

Inside the reset method of the decoder_context the following is done:

  dpb.clear();

  nal_parser.remove_pending_input_data();

Should this not also be done inside the destructor of decoder_context? We are getting an oss-fuzz error report about memory leaks of NAL_unit in the oss-fuzz tooling of @ImageMagick and it looks like it is happening because of this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant