[FFmpeg-cvslog] avformat/dashenc: Fix a resource leak when http persistent in enabled
Karthick Jeyapal
git at videolan.org
Fri Jan 26 04:52:43 EET 2018
ffmpeg | branch: master | Karthick Jeyapal <kjeyapal at akamai.com> | Tue Jan 2 14:07:56 2018 +0530| [0df9d0f4cbcb18006f9fde0502671f9ef293e2f2] | committer: Karthick Jeyapal
avformat/dashenc: Fix a resource leak when http persistent in enabled
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0df9d0f4cbcb18006f9fde0502671f9ef293e2f2
---
libavformat/dashenc.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index 5ece1002fe..38cc592cde 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -1,6 +1,7 @@
/*
* MPEG-DASH ISO BMFF segmenter
* Copyright (c) 2014 Martin Storsjo
+ * Copyright (c) 2018 Akamai Technologies, Inc.
*
* This file is part of FFmpeg.
*
@@ -309,6 +310,9 @@ static void dash_free(AVFormatContext *s)
av_free(os->segments);
}
av_freep(&c->streams);
+
+ ff_format_io_close(s, &c->mpd_out);
+ ff_format_io_close(s, &c->m3u8_out);
}
static void output_segment_list(OutputStream *os, AVIOContext *out, AVFormatContext *s,
More information about the ffmpeg-cvslog
mailing list