diff options
author | LuMingYin <lumingyindetect@163.com> | 2024-04-13 14:35:29 +0800 |
---|---|---|
committer | Zhao Zhili <zhilizhao@tencent.com> | 2024-05-20 23:56:58 +0800 |
commit | 9481b7d932e895b903c260c54c7b26adfe402e1f (patch) | |
tree | 1f26ccd0100c6ee8e736978ed37d8afac4d65ec1 | |
parent | b113050d96d9d36ac2e7f10b3af8b9c61684c33f (diff) | |
download | ffmpeg-9481b7d932e895b903c260c54c7b26adfe402e1f.tar.gz |
libavformat/hlsenc: fix a memory leak on error path
Signed-off-by: LuMingYin <lumingyindetect@163.com>
Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
-rw-r--r-- | libavformat/hlsenc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index bde7230036..0e2843c6bc 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -2757,6 +2757,7 @@ static int hls_write_trailer(struct AVFormatContext *s) filename = av_asprintf("%s", oc->url); } if (!filename) { + av_dict_free(&options); av_freep(&old_filename); return AVERROR(ENOMEM); } |