There is a memory leak in the function WriteMSLImage of coders/msl.c in ImageMagick 7.0.8-13 Q16, and the function ProcessMSLScript of coders/msl.c in GraphicsMagick before 1.3.31.
https://usn.ubuntu.com/4034-1/
https://github.com/ImageMagick/ImageMagick/issues/1360
http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00034.html
http://hg.code.sf.net/p/graphicsmagick/code/file/233618f8fe82/ChangeLog