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

pull/304/head^2
vkot 6 years ago committed by Steven Liu
parent 7499d0b015
commit 3ee735901e
  1. 1
      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();

Loading…
Cancel
Save