mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 13:47:56 +00:00
parent
70112d29da
commit
e05a708024
@ -88,8 +88,18 @@ class Genode::Packet_allocator : public Genode::Range_allocator
|
|||||||
{
|
{
|
||||||
if (_base != base) return -1;
|
if (_base != base) return -1;
|
||||||
|
|
||||||
if (_array) destroy(_md_alloc, _array);
|
_base = _next = 0;
|
||||||
if (_bits) _md_alloc->free(_bits, _block_cnt(size)/8);
|
|
||||||
|
if (_array) {
|
||||||
|
destroy(_md_alloc, _array);
|
||||||
|
_array = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (_bits) {
|
||||||
|
_md_alloc->free(_bits, _block_cnt(size)/8);
|
||||||
|
_bits = nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user