mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-21 02:01:38 +00:00
dde_linux: prevent debug message in memory backend
The Allocator_avl back end will display diagnostic messages if the address to be freed is not at the beginning of a block. This happens regulary when 'struct page' objects are not freed in allocation order. Issue #4325.
This commit is contained in:
parent
98385a7658
commit
059c7ed74a
@ -167,6 +167,9 @@ bool Lx_kit::Mem_allocator::free(const void * ptr)
|
||||
if (!_mem.valid_addr((addr_t)ptr))
|
||||
return false;
|
||||
|
||||
if (!_mem.size_at(ptr))
|
||||
return true;
|
||||
|
||||
_mem.free(const_cast<void*>(ptr));
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user