mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-13 10:30:05 +01:00
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@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit9ca58424de) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
4.0 KiB
4.0 KiB