mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 16:22:37 +00:00
avformat/hlsenc: Fix leak of child AVFormatContext
Beforeed897633
, 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>
This commit is contained in:
parent
c1e215041b
commit
7d6637bcc4
@ -2631,7 +2631,6 @@ failed:
|
||||
}
|
||||
ffio_free_dyn_buf(&oc->pb);
|
||||
|
||||
vs->avf = NULL;
|
||||
av_free(old_filename);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user