diff --git a/imagick_helpers.c b/imagick_helpers.c index 87cada4e..6b336924 100644 --- a/imagick_helpers.c +++ b/imagick_helpers.c @@ -452,6 +452,10 @@ zend_bool php_imagick_check_font(char *font, int font_len TSRMLS_DC) } } + for(i = 0 ; i < num_fonts ; i++) { + IMAGICK_FREE_MAGICK_MEMORY(fonts[i]); + } + IMAGICK_FREE_MAGICK_MEMORY(fonts); return retval; }