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 |
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 |
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; }