avformat/hlsenc: fix memleak at hls_write_trailer

Found-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
pull/322/head
Steven Liu 6 years ago
parent 5b809a8d4b
commit 9ff8fbda65
  1. 1
      libavformat/hlsenc.c

@ -2643,6 +2643,7 @@ failed:
ff_format_io_close(s, &vs->out);
hls_window(s, 1, vs);
}
ffio_free_dyn_buf(&oc->pb);
avformat_free_context(oc);
vs->avf = NULL;

Loading…
Cancel
Save