[FFmpeg-devel] [PATCH] examples: Add av_freep to avoid potential memory leak

Michael Niedermayer michael at niedermayer.cc
Mon Aug 4 02:31:39 EEST 2025


On Sat, Aug 02, 2025 at 11:28:48PM +0000, Jiasheng Jiang wrote:
> Add av_freep() to free avio_ctx_buffer if avio_alloc_context fails
> to avoid potential memory leak.
> 
> Fixes: 5fc4dea39c ("examples: add avio_reading.c example")
> Signed-off-by: Jiasheng Jiang <jiashengjiangcool at gmail.com>
> ---
>  doc/examples/avio_read_callback.c | 1 +
>  1 file changed, 1 insertion(+)

will apply

thx

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

What is money laundering? Its paying someone and not telling the government.
-------------- 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/07f0ecdf/attachment.sig>


More information about the ffmpeg-devel mailing list