Closed remiolivier-discord closed 2 weeks ago
When using webp_decoder_create and webp_decoder_release, valgrind detects a memory leak for a bitstream.
webp_decoder_create
webp_decoder_release
bitstream
==959597== LEAK SUMMARY: ==959597== definitely lost: 16,950 bytes in 1 blocks ==959597== indirectly lost: 0 bytes in 0 blocks ==959597== possibly lost: 0 bytes in 0 blocks ==959597== still reachable: 62 bytes in 3 blocks ==959597== suppressed: 0 bytes in 0 blocks
This fix solves the issue by deleting allocated data in the frame.bitstream
==959597== LEAK SUMMARY: ==959597== definitely lost: 0 bytes in 1 blocks ==959597== indirectly lost: 0 bytes in 0 blocks ==959597== possibly lost: 0 bytes in 0 blocks ==959597== still reachable: 62 bytes in 3 blocks ==959597== suppressed: 0 bytes in 0 blocks
When using
webp_decoder_create
andwebp_decoder_release
, valgrind detects a memory leak for abitstream
.This fix solves the issue by deleting allocated data in the frame.bitstream