Posted: 2006-02-26T10:20:07-07:00
Did you try closing the file you pass MagickReadImageFile()? ImageMagick call fdopen() on the file descriptior you pass and the memory is not released until you call fclose().
Use https://github.com/ImageMagick/ImageMagick/discussions instead.
https://magick.imagemagick.org/