Bug 303519
| Summary: | Update MetaAllocator::freeFreeSpaceNode() to call the FreeSpaceNode destructor | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Chris Dumez <cdumez> |
| Component: | Web Template Framework | Assignee: | Chris Dumez <cdumez> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | ddkilzer, ggaren, webkit-bug-importer, ysuzuki |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Chris Dumez
Update MetaAllocator::freeFreeSpaceNode() to call the FreeSpaceNode destructor before freeing it. It is not correct to free a non-POD object before first running its destructor in C++. This can lead to bugs and leaks. This is particularly important now that FreeSpaceNode now subclasses CanMakeThreadSafeCheckedPtr.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Chris Dumez
Pull request: https://github.com/WebKit/WebKit/pull/54816
EWS
Committed 304051@main (98aa585d7ea2): <https://commits.webkit.org/304051@main>
Reviewed commits have been landed. Closing PR #54816 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/165975763>