From c108a4aa1e30d9526308dc8d0869c5fe7198eb8e Mon Sep 17 00:00:00 2001 From: Chris Kennedy Date: Tue, 18 Oct 2011 12:00:48 +0200 Subject: [PATCH] fix memleak in packet corrupt dropping code --- libavformat/utils.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/utils.c b/libavformat/utils.c index 333baa0290..d1fdef29c3 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -756,6 +756,7 @@ int av_read_packet(AVFormatContext *s, AVPacket *pkt) av_log(s, AV_LOG_WARNING, "Dropped corrupted packet (stream = %d)\n", pkt->stream_index); + av_free_packet(pkt); continue; }