mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-21 22:47:50 +00:00
lxip: do not whine on kfree(0)
This commit is contained in:
parent
de4a98c777
commit
49333bafc2
@ -360,6 +360,8 @@ void *kcalloc(size_t n, size_t size, gfp_t flags)
|
||||
|
||||
void kfree(const void *p)
|
||||
{
|
||||
if (!p) return;
|
||||
|
||||
if (Malloc::mem()->inside((Genode::addr_t)p))
|
||||
Malloc::mem()->free(p);
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user