From da6c4573e9ccbfafea28c4a97eca43bae8e0d819 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 16 Aug 2004 23:17:32 +0000 Subject: [PATCH] memleak found by ("wxWindows_study" ) Originally committed as revision 3396 to svn://svn.ffmpeg.org/ffmpeg/trunk --- ffplay.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ffplay.c b/ffplay.c index fe5407610c..bfff450cdf 100644 --- a/ffplay.c +++ b/ffplay.c @@ -197,6 +197,7 @@ static void packet_queue_flush(PacketQueue *q) for(pkt = q->first_pkt; pkt != NULL; pkt = pkt1) { pkt1 = pkt->next; av_free_packet(&pkt->pkt); + av_freep(&pkt); } q->last_pkt = NULL; q->first_pkt = NULL;