Skip to content

Commit

Permalink
Clean memory in ImagickKernel::fromMatrix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Galanin committed Mar 16, 2023
1 parent 661405a commit f22dd99
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions imagickkernel_class.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,6 @@ PHP_METHOD(ImagickKernel, fromMatrix)
kernel_info = imagick_createKernel(values, num_columns, num_rows, origin_x, origin_y);
createKernelZval(return_value, kernel_info TSRMLS_CC);

return;

cleanup:
if (values != NULL) {
RelinquishAlignedMemory(values);
Expand Down

0 comments on commit f22dd99

Please sign in to comment.