Skip to content

Conversation

@mikeash
Copy link
Contributor

@mikeash mikeash commented Oct 29, 2025

Item::destroy will call free when there's no task, so the allocation needs to match, lest we free something that wasn't malloced and crash.

rdar://162589711

Item::destroy will call free when there's no task, so the allocation needs to match, lest we free something that wasn't malloced and crash.

rdar://162589711
@mikeash mikeash requested a review from ktoso as a code owner October 29, 2025 22:19
@mikeash
Copy link
Contributor Author

mikeash commented Oct 29, 2025

@swift-ci please test

Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm, thanks!

@mikeash
Copy link
Contributor Author

mikeash commented Oct 29, 2025

I hadn't seen this code before so I wasn't totally sure if this was right, glad you approve. 😀

@mikeash mikeash enabled auto-merge October 29, 2025 22:29
@mikeash
Copy link
Contributor Author

mikeash commented Oct 30, 2025

@swift-ci please test windows platform

@mikeash mikeash merged commit cfd70d7 into swiftlang:main Oct 30, 2025
5 checks passed
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