[FFmpeg-devel] [PATCH 5/5] avformat/rtpdec_asf: fix leak in ff_wms_parse_sdp_a_line()

Michael Niedermayer michael at niedermayer.cc
Tue Jul 1 06:27:33 EEST 2025


On Sun, Jun 29, 2025 at 02:45:26PM +0800, Lidong Yan wrote:
> In ff_wms_parse_sdp_a_line(), it allocates memory in buf, but doesn't
> free buf when avformat_alloc_context() failed. Add av_free(buf) before
> return to prevent from leak.
> 
> Signed-off-by: Lidong Yan <502024330056 at smail.nju.edu.cn>
> ---
>  libavformat/rtpdec_asf.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

will apply

thx

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

it is not once nor twice but times without number that the same ideas make
their appearance in the world. -- Aristotle
-------------- 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/20250701/76e694b3/attachment.sig>


More information about the ffmpeg-devel mailing list