==25882== 11,296 bytes in 1 blocks are still reachable in loss record 7 of 7
==25882== at 0x4C30FB5: malloc (vg_replace_malloc.c:380)
==25882== by 0x53B7637: alloc_and_init_significant_coeff_ctxIdx_lookupTable() (in /home/ADC/80301694/Work/2021-06-24-Base/TBLMultiMediaCloud/tbl_image/out/lib/Tbl_Image_Kit/lib/libtbl_image_kit.so.1.0.8)
==25882== by 0x539F229: de265_init (in /home/ADC/80301694/Work/2021-06-24-Base/TBLMultiMediaCloud/tbl_image/out/lib/Tbl_Image_Kit/lib/libtbl_image_kit.so.1.0.8)
==25882== by 0x5363B41: heif::register_decoder(heif_decoder_plugin const*) (in /home/ADC/80301694/Work/2021-06-24-Base/TBLMultiMediaCloud/tbl_image/out/lib/Tbl_Image_Kit/lib/libtbl_image_kit.so.1.0.8)
==25882== by 0x4F4AD38: _GLOBAL__sub_I_heif_plugin_registry.cc (in /home/ADC/80301694/Work/2021-06-24-Base/TBLMultiMediaCloud/tbl_image/out/lib/Tbl_Image_Kit/lib/libtbl_image_kit.so.1.0.8)
==25882== by 0x4010732: call_init (dl-init.c:72)
==25882== by 0x4010732: _dl_init (dl-init.c:119)
==25882== by 0x40010C9: ??? (in /lib/x86_64-linux-gnu/ld-2.27.so)
==25882== by 0x1: ???
==25882== by 0x1FFF00004A: ???
==25882== by 0x1FFF000060: ???
i check the code, there is de265_free function but not be called, looks like missing call deinit_plugin
the issue is found by imagemagick test .
libheif version: 1.10.0
==25882== 11,296 bytes in 1 blocks are still reachable in loss record 7 of 7 ==25882== at 0x4C30FB5: malloc (vg_replace_malloc.c:380) ==25882== by 0x53B7637: alloc_and_init_significant_coeff_ctxIdx_lookupTable() (in /home/ADC/80301694/Work/2021-06-24-Base/TBLMultiMediaCloud/tbl_image/out/lib/Tbl_Image_Kit/lib/libtbl_image_kit.so.1.0.8) ==25882== by 0x539F229: de265_init (in /home/ADC/80301694/Work/2021-06-24-Base/TBLMultiMediaCloud/tbl_image/out/lib/Tbl_Image_Kit/lib/libtbl_image_kit.so.1.0.8) ==25882== by 0x5363B41: heif::register_decoder(heif_decoder_plugin const*) (in /home/ADC/80301694/Work/2021-06-24-Base/TBLMultiMediaCloud/tbl_image/out/lib/Tbl_Image_Kit/lib/libtbl_image_kit.so.1.0.8) ==25882== by 0x4F4AD38: _GLOBAL__sub_I_heif_plugin_registry.cc (in /home/ADC/80301694/Work/2021-06-24-Base/TBLMultiMediaCloud/tbl_image/out/lib/Tbl_Image_Kit/lib/libtbl_image_kit.so.1.0.8) ==25882== by 0x4010732: call_init (dl-init.c:72) ==25882== by 0x4010732: _dl_init (dl-init.c:119) ==25882== by 0x40010C9: ??? (in /lib/x86_64-linux-gnu/ld-2.27.so) ==25882== by 0x1: ??? ==25882== by 0x1FFF00004A: ??? ==25882== by 0x1FFF000060: ???
i check the code, there is de265_free function but not be called, looks like missing call deinit_plugin the issue is found by imagemagick test .