From 06205b5efdcf0bc4c5463bfdd02f09b5f79fc4cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Mon, 29 Jul 2013 11:27:44 +0300 Subject: [PATCH] hls: Free packets when skipping packets when seeking MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes memory leaks present since 2b3d041cdc. Signed-off-by: Martin Storsjö --- libavformat/hls.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/hls.c b/libavformat/hls.c index 0c836c7536..9aef5e07f3 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -651,6 +651,8 @@ start: c->seek_timestamp = AV_NOPTS_VALUE; break; } + av_free_packet(&var->pkt); + reset_packet(&var->pkt); } } /* Check if this stream still is on an earlier segment number, or