libde265 icon indicating copy to clipboard operation
libde265 copied to clipboard

Should the destructor of decoder_context include more cleanups?

Open farindk opened this issue 1 year ago • 1 comments

Copied from: https://github.com/strukturag/libheif/issues/1166#issue-2279103313


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?

farindk avatar Jun 11 '24 18:06 farindk