libheif icon indicating copy to clipboard operation
libheif copied to clipboard

Should the destructor of decoder_context include more cleanups?

Open dlemstra opened this issue 9 months ago • 0 comments

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?

dlemstra avatar May 04 '24 16:05 dlemstra