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;