AK: Remove kfree
definition
This commit is contained in:
parent
9039f8fb0f
commit
cb3cc6ec27
Notes:
sideshowbarker
2024-07-17 20:45:42 +09:00
Author: https://github.com/mhermier Commit: https://github.com/SerenityOS/serenity/commit/cb3cc6ec27a Pull-request: https://github.com/SerenityOS/serenity/pull/11827 Reviewed-by: https://github.com/BertalanD Reviewed-by: https://github.com/bgianfo ✅
2 changed files with 2 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -17,11 +17,10 @@
|
|||
|
||||
# define kmalloc malloc
|
||||
# define kmalloc_good_size malloc_good_size
|
||||
# define kfree free
|
||||
|
||||
inline void kfree_sized(void* ptr, size_t)
|
||||
{
|
||||
kfree(ptr);
|
||||
free(ptr);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue