diff --git a/imagick_class.c b/imagick_class.c index bf71f9b9..22395b63 100644 --- a/imagick_class.c +++ b/imagick_class.c @@ -14428,7 +14428,9 @@ PHP_METHOD(Imagick, getOptions) option_value = MagickGetOption(intern->magick_wand, options[i]); IM_add_assoc_string(return_value, options[i], option_value); MagickRelinquishMemory(option_value); + DestroyString(options[i]); } + RelinquishMagickMemory(options); return; }