mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-22 02:09:24 +00:00
Revert "AK: Don't try to free(UINTPTR_MAX) in StringData::delete()"
This reverts commit 693fe76d1c
.
This commit is contained in:
parent
209d05fcb4
commit
c39eddaef8
Notes:
github-actions[bot]
2025-03-27 16:05:29 +00:00
Author: https://github.com/alimpfard
Commit: c39eddaef8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4105
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/trflynn89 ✅
1 changed files with 1 additions and 6 deletions
|
@ -66,12 +66,7 @@ public:
|
||||||
|
|
||||||
void operator delete(void* ptr)
|
void operator delete(void* ptr)
|
||||||
{
|
{
|
||||||
if (is_constant_evaluated()) {
|
free(ptr);
|
||||||
if (reinterpret_cast<uintptr_t>(ptr) != UINTPTR_MAX)
|
|
||||||
free(ptr);
|
|
||||||
} else {
|
|
||||||
free(ptr);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
~StringData()
|
~StringData()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue