Skip to content

Commit

Permalink
Clean memory in ImagickKernel::separate() as well
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Galanin committed Mar 16, 2023
1 parent f22dd99 commit 9076cc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions imagickkernel_class.c
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,7 @@ PHP_METHOD(ImagickKernel, separate)
kernel_info->x,
kernel_info->y
);
RelinquishAlignedMemory(values_copy);

#if PHP_VERSION_ID >= 70000
createKernelZval(&separate_object, kernel_info_copy TSRMLS_CC);
Expand Down

0 comments on commit 9076cc8

Please sign in to comment.