Skip to content

Commit

Permalink
Release memory in Imagick::getOptions()
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Galanin authored and Danack committed Mar 18, 2023
1 parent 2b0ecc4 commit d521b3c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions imagick_class.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit d521b3c

Please sign in to comment.