diff options
author | Andreas Rheinhardt <andreas.rheinhardt@gmail.com> | 2019-12-16 01:04:03 +0100 |
---|---|---|
committer | Steven Liu <lq@chinaffmpeg.org> | 2019-12-23 14:05:26 +0800 |
commit | 7d6637bcc4bb6d1d554e910a4afd6cf6711f8862 (patch) | |
tree | 85915b3283819504fb945fba6c038b8de388427e | |
parent | c1e215041bb4feeb17fc1d16d5c651ca6d35ad84 (diff) | |
download | ffmpeg-7d6637bcc4bb6d1d554e910a4afd6cf6711f8862.tar.gz |
avformat/hlsenc: Fix leak of child AVFormatContext
Before ed897633, the hls muxer would free its child AVFormatContexts
and reset the pointer to these contexts to NULL immediately afterwards;
ed897633 moved the former to later (into a separate function), but kept
the resetting, ensuring that the child context leaks.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Reviewed-by: Steven Liu <lq@onvideo.cn>
-rw-r--r-- | libavformat/hlsenc.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 6f36a23cbe..2b87070d62 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -2631,7 +2631,6 @@ failed: } ffio_free_dyn_buf(&oc->pb); - vs->avf = NULL; av_free(old_filename); } |