Commit 0df9d0f4 authored by Karthick Jeyapal's avatar Karthick Jeyapal

avformat/dashenc: Fix a resource leak when http persistent in enabled

parent 4e6e1e53
/*
* 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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment