Message ID | 20200508103359.65143-3-lq@chinaffmpeg.org |
---|---|
State | Accepted |
Commit | ba436c1586d05bfd2094c26ca4ecb1542752cf38 |
Headers | show |
Series | [FFmpeg-devel,1/3] avformat/hlsenc: move number out of hls_start | expand |
Context | Check | Description |
---|---|---|
andriy/default | pending | |
andriy/make | success | Make finished |
andriy/make_fate | success | Make fate finished |
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 307aba2efa..eb12b4a7f8 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -2679,9 +2679,10 @@ static int hls_write_trailer(struct AVFormatContext *s) if (ret < 0) av_log(s, AV_LOG_WARNING, "Failed to upload file '%s' at the end.\n", oc->url); } - av_freep(&vs->temp_buffer); failed: + av_freep(&vs->temp_buffer); + av_dict_free(&options); av_freep(&filename); av_write_trailer(oc); if (oc->url[0]) {
Signed-off-by: Steven Liu <lq@chinaffmpeg.org> --- libavformat/hlsenc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)