[FFmpeg-devel] [PATCH] libavcodec/tests/snowenc: Add av_free() to avoid memory leak

Michael Niedermayer michael at niedermayer.cc
Thu Aug 7 03:25:04 EEST 2025


On Sun, Aug 03, 2025 at 11:31:27PM +0000, Jiasheng Jiang wrote:
> Add av_free() to free s.temp_dwt_buffer and s.temp_idwt_buffer at the end of the function to avoid memory leak.
> 
> Fixes: 5d48e4eafa ("Merge commit 'a6a750c7ef240b72ce01e9653343a0ddf247d196'")
> Signed-off-by: Jiasheng Jiang <jiashengjiangcool at gmail.com>
> ---
>  libavcodec/tests/snowenc.c | 7 ++++++-
>  1 file changed, 6 insertions(+), 1 deletion(-)

will apply

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The misfortune of the wise is better than the prosperity of the fool.
-- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20250807/287d582b/attachment.sig>


More information about the ffmpeg-devel mailing list