diff options
author | Lidong Yan <yldhome2d2@gmail.com> | 2025-06-17 22:14:15 +0800 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2025-06-17 11:27:28 -0300 |
commit | ee1f79b0fa4c82da9c19328b049b593c71611402 (patch) | |
tree | 61b2c17ca70d2c6b2864d58e2a7f33780c8c367b /libavformat/tls_openssl.c | |
parent | 8087777e667cfcf42fb647d8ed8500b1feed270b (diff) | |
download | ffmpeg-ee1f79b0fa4c82da9c19328b049b593c71611402.tar.gz |
avformat/sbgdec: fix leak in sbg_read_header()
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@smail.nju.edu.cn>
Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavformat/tls_openssl.c')
0 files changed, 0 insertions, 0 deletions