mirror of
https://github.com/mmueller41/genode.git
synced 2026-01-21 12:32:56 +01:00
lxip: do not whine on kfree(0)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user