diff mbox series

[FFmpeg-devel] avformat/dashdec: free memory when hlsenc_io_open failed.

Message ID 20241026125640.52109-1-jiangjie618@gmail.com
State New
Headers show
Series [FFmpeg-devel] avformat/dashdec: free memory when hlsenc_io_open failed. | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

jiangjie Oct. 26, 2024, 12:56 p.m. UTC
---
 libavformat/hlsenc.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c
index 6148685f40..0d560ad1ce 100644
--- a/libavformat/hlsenc.c
+++ b/libavformat/hlsenc.c
@@ -932,6 +932,7 @@  static int hls_mux_init(AVFormatContext *s, VariantStream *vs)
         av_dict_free(&options);
     }
     if (ret < 0) {
+        ffio_free_dyn_buf(&oc->pb);
         av_log(s, AV_LOG_ERROR, "Failed to open segment '%s'\n", vs->fmp4_init_filename);
         return ret;
     }