diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index c9858f21bf..9070a39eeb 100644 --- a/libavformat/hlsenc.c +++ b/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;