1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 04:47:34 +00:00

AK: Remove kfree definition

This commit is contained in:
Michel Hermier 2022-01-12 04:27:21 +01:00 committed by Andreas Kling
parent 9039f8fb0f
commit cb3cc6ec27
2 changed files with 2 additions and 3 deletions

View file

@ -20,7 +20,7 @@ inline String demangle(StringView name)
auto* demangled_name = abi::__cxa_demangle(name.to_string().characters(), nullptr, nullptr, &status);
auto string = String(status == 0 ? demangled_name : name);
if (status == 0)
kfree(demangled_name);
free(demangled_name);
return string;
}