mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avformat/tee: Fix leak of FIFO-options dictionary
Happened for all slaves which didn't use the FIFO. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
4df34df642
commit
3a27fcb168
@ -125,6 +125,7 @@ static int close_slave(TeeSlave *tee_slave)
|
||||
unsigned i;
|
||||
int ret = 0;
|
||||
|
||||
av_dict_free(&tee_slave->fifo_options);
|
||||
avf = tee_slave->avf;
|
||||
if (!avf)
|
||||
return 0;
|
||||
@ -230,6 +231,7 @@ static int open_slave(AVFormatContext *avf, char *slave, TeeSlave *tee_slave)
|
||||
|
||||
av_dict_free(&options);
|
||||
options = tee_slave->fifo_options;
|
||||
tee_slave->fifo_options = NULL;
|
||||
}
|
||||
ret = avformat_alloc_output_context2(&avf2, NULL,
|
||||
tee_slave->use_fifo ? "fifo" :format, filename);
|
||||
|
Loading…
Reference in New Issue
Block a user