diff --git a/src/demux/demux.c b/src/demux/demux.c index 5d4dcf54..dd75904f 100644 --- a/src/demux/demux.c +++ b/src/demux/demux.c @@ -317,6 +317,7 @@ static ParseStatus ParseAnimationFrame( frame->duration_ = ReadLE24s(mem); frame->dispose_method_ = (WebPMuxAnimDispose)(ReadByte(mem) & 1); if (frame->width_ * (uint64_t)frame->height_ >= MAX_IMAGE_AREA) { + free(frame); return PARSE_ERROR; }