aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/tls_openssl.c
diff options
context:
space:
mode:
authorLidong Yan <yldhome2d2@gmail.com>2025-06-17 22:14:15 +0800
committerJames Almer <jamrial@gmail.com>2025-06-17 11:27:28 -0300
commitee1f79b0fa4c82da9c19328b049b593c71611402 (patch)
tree61b2c17ca70d2c6b2864d58e2a7f33780c8c367b /libavformat/tls_openssl.c
parent8087777e667cfcf42fb647d8ed8500b1feed270b (diff)
downloadffmpeg-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