### ImageMagick version

ImageMagick 7.1.0-50

### Operating system

Linux

### Operating system, version and so on

64bit Amazon Linux 2/3.5.8

### Description

We were experience issues, where a single process was using up all the memory on the server and all the swap memory. We tracked it down to that, is was a gif, which was animated, was beeing converted to webp. The creates som sort of memoryleak, that crashes the entire server.

### Steps to Reproduce

1. Upload image to server
2. Try to transform to webp
3. Server memory spikes out, until server craches

### Images

https://cdn2.surisuri.dk/uploads/products/premium-hair-treatment/cp-1-premium-hair-treatment-25ml-3.gif
Transforming animated Gif to webp creates memoryleak
This is a GitHub Issue
repo:ImageMagick
owner:ImageMagick
Title : Transforming animated Gif to webp creates memoryleak
Issue date:

--- start body ---
### ImageMagick version

ImageMagick 7.1.0-50

### Operating system

Linux

### Operating system, version and so on

64bit Amazon Linux 2/3.5.8

### Description

We were experience issues, where a single process was using up all the memory on the server and all the swap memory. We tracked it down to that, is was a gif, which was animated, was beeing converted to webp. The creates som sort of memoryleak, that crashes the entire server.

### Steps to Reproduce

1. Upload image to server
2. Try to transform to webp
3. Server memory spikes out, until server craches

### Images

https://cdn2.surisuri.dk/uploads/products/premium-hair-treatment/cp-1-premium-hair-treatment-25ml-3.gif
--- end body ---
