summaryrefslogtreecommitdiff
path: root/libavformat/hls.c
diff options
context:
space:
mode:
authorvkot <valery.kot@4cinsights.com>2018-12-24 10:19:55 +0100
committerSteven Liu <lq@chinaffmpeg.org>2018-12-26 19:22:11 +0800
commit3ee735901e08213a46a5f7339ca86c43524d6994 (patch)
tree222c8f38fafa9d681de22a5b81ce43f6b93f3bbb /libavformat/hls.c
parent7499d0b0159f61cd74b0dbd1419bf7a93d12c74d (diff)
avformat/hls.c: Properly free prev_segments dynarray after playlist parsing
Diffstat (limited to 'libavformat/hls.c')
-rw-r--r--libavformat/hls.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/hls.c b/libavformat/hls.c
index 8ad08baaed..63e1abe789 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -931,6 +931,7 @@ static int parse_playlist(HLSContext *c, const char *url,
prev_start_seq_no, pls->start_seq_no);
}
free_segment_dynarray(prev_segments, prev_n_segments);
+ av_freep(&prev_segments);
}
if (pls)
pls->last_load_time = av_gettime_relative();