Skip to content

fix(KRYT-1): replace delete with free for malloc'd _image buffer#8

Open
tapiau wants to merge 1 commit intosheffieldhackspace:mainfrom
tapiau:fix/kryt-1-delete-malloc
Open

fix(KRYT-1): replace delete with free for malloc'd _image buffer#8
tapiau wants to merge 1 commit intosheffieldhackspace:mainfrom
tapiau:fix/kryt-1-delete-malloc

Conversation

@tapiau
Copy link

@tapiau tapiau commented Feb 23, 2026

_image is allocated with malloc() but was freed with delete, which is undefined behaviour in C++. Replace with free() for correct pairing.

_image is allocated with malloc() but was freed with delete, which is
undefined behaviour in C++. Replace with free() for correct pairing.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@alifeee
Copy link
Member

alifeee commented Feb 24, 2026

are you going to write a hit piece on me if i don't merge this

@tapiau
Copy link
Author

tapiau commented Feb 24, 2026

No, it doesn’t really matter - one of these days I’ll grab couple of cans of Guinness 0.0 and drop by to meet you guys anyway.

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