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

Michael Niedermayer michael at niedermayer.cc
Mon Aug 4 02:32:56 EEST 2025


On Sun, Aug 03, 2025 at 07:14:38PM +0000, Jiasheng Jiang wrote:
> Add av_free() to free extra_data if av_packet_add_side_data() fails.
> 
> Fixes: da3c69a5a9 ("Added test for libavcodec/avpacket.c")
> Signed-off-by: Jiasheng Jiang <jiashengjiangcool at gmail.com>
> ---
>  libavcodec/tests/avpacket.c | 1 +
>  1 file changed, 1 insertion(+)
> 

will apply

thx

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

Elect your leaders based on what they did after the last election, not
based on what they say before an election.

-------------- 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/a9c361fc/attachment.sig>


More information about the ffmpeg-devel mailing list