Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean memory in ImagickKernel::fromMatrix #601

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mikhainin
Copy link

It seems like imagick_createKernel() uses the first argument - values to copy data in the new Kernel. But if the call is successful, the values just get leaked

@Danack
Copy link
Collaborator

Danack commented Jun 26, 2024

Thanks. Merged in f22dd99 and 9076cc8

@Danack Danack closed this Jun 26, 2024
@Danack
Copy link
Collaborator

Danack commented Jul 1, 2024

Actually, running the tests with the memory checker php run-tests.php -m tests/145_imagickkernel_coverage.phpt gives errors about this. So I've effectively reverted the changes until I can dig into what is actually happening, as a memleak is preferable to a use after free.

@Danack Danack reopened this Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants