Commit 3ee73590 authored by vkot's avatar vkot Committed by Steven Liu

avformat/hls.c: Properly free prev_segments dynarray after playlist parsing

parent 7499d0b0
...@@ -931,6 +931,7 @@ static int parse_playlist(HLSContext *c, const char *url, ...@@ -931,6 +931,7 @@ static int parse_playlist(HLSContext *c, const char *url,
prev_start_seq_no, pls->start_seq_no); prev_start_seq_no, pls->start_seq_no);
} }
free_segment_dynarray(prev_segments, prev_n_segments); free_segment_dynarray(prev_segments, prev_n_segments);
av_freep(&prev_segments);
} }
if (pls) if (pls)
pls->last_load_time = av_gettime_relative(); pls->last_load_time = av_gettime_relative();
......
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