[FFmpeg-devel] [PATCH 3/4] avformat/sbgdec: fix leak in sbg_read_header()
Nicolas George
george at nsup.org
Tue Jun 17 17:23:54 EEST 2025
Lidong Yan (HE12025-06-17):
> In sbg_read_header(), if avformat_new_stream() failed, it returns
> without cleanup, which may cause memory leaks. Replace return statement
> with goto so that we would first clean up then return.
>
> Signed-off-by: Lidong Yan <502024330056 at smail.nju.edu.cn>
> ---
> libavformat/sbgdec.c | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
LGTM, thanks.
Regards,
--
Nicolas George
More information about the ffmpeg-devel
mailing list