Skip to content

Commit

Permalink
Release memory in Imagick::getConfigureOptions()
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 c4cc695 commit 2b0ecc4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions imagick_class.c
Original file line number Diff line number Diff line change
Expand Up @@ -11853,7 +11853,10 @@ PHP_METHOD(Imagick, getConfigureOptions)
for (i=0; i<number_options; i++) {
option_value = MagickQueryConfigureOption(result[i]);
IM_add_assoc_string(return_value, result[i], option_value);
DestroyString(result[i]);
DestroyString(option_value);
}
RelinquishMagickMemory(result);
}
/* }}} */

Expand Down

0 comments on commit 2b0ecc4

Please sign in to comment.