[FFmpeg-devel] [PATCH] avcodec/tests/avpacket: Add av_packet_free() to avoid memory leak

Michael Niedermayer michael at niedermayer.cc
Mon Aug 4 02:33:17 EEST 2025


On Sun, Aug 03, 2025 at 08:09:38PM +0000, Jiasheng Jiang wrote:
> Add av_packet_free() to free avpkt_clone and avpkt in the error paths to avoid potential memory leak.
> 
> Fixes: da3c69a5a9 ("Added test for libavcodec/avpacket.c")
> Signed-off-by: Jiasheng Jiang <jiashengjiangcool at gmail.com>
> ---
>  libavcodec/tests/avpacket.c | 3 +++
>  1 file changed, 3 insertions(+)

will apply

thx

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

It is dangerous to be right in matters on which the established authorities
are wrong. -- Voltaire
-------------- 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/20250804/cc52cb17/attachment.sig>


More information about the ffmpeg-devel mailing list