In ImageMagick 7.0.7-12 Q16, there are memory leaks in MontageImageCommand in MagickWand/montage.c.Referenceshttp://www.securityfocus.com/bid/102437https://usn.ubuntu.com/3681-1/https://github.com/ImageMagick/ImageMagick/issues/904