diff --git a/imagick_class.c b/imagick_class.c index bde54390..cc9f1563 100644 --- a/imagick_class.c +++ b/imagick_class.c @@ -11812,7 +11812,10 @@ PHP_METHOD(Imagick, getConfigureOptions) for (i=0; imagick_wand, options[i]); IM_add_assoc_string(return_value, options[i], option_value); MagickRelinquishMemory(option_value); + DestroyString(options[i]); } + RelinquishMagickMemory(options); return; }