Skip to content

Commit

Permalink
Release memory in Imagick::getImageArtifacts()
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 a1e4d5b commit c4cc695
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 @@ -14262,8 +14262,11 @@ PHP_METHOD(Imagick, getImageArtifacts)
else {
IM_add_assoc_string(return_value, artifacts[i], artifact_value);
MagickRelinquishMemory(artifact_value);
DestroyString(artifact_value);
}
DestroyString(artifacts[i]);
}
RelinquishMagickMemory(artifacts);
}
/* }}} */
#endif
Expand Down

0 comments on commit c4cc695

Please sign in to comment.