Browse Source

avformat/hlsenc: fix memleak at hls_write_trailer

Found-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
tags/n4.3
Steven Liu 5 years ago
parent
commit
9ff8fbda65
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      libavformat/hlsenc.c

+ 1
- 0
libavformat/hlsenc.c View File

@@ -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