mirror of
https://github.com/xcat2/xNBA.git
synced 2026-05-13 09:54:10 +00:00
13e4b9ec49
Rearrange the fields in struct memory_block (without altering MIN_MEMBLOCK_SIZE) so that the "count" field of a reference-counted object is left intact when the memory containing the object is freed. This allows for the possibility of detecting reference-counting errors such as double-freeing. Signed-off-by: Michael Brown <mcb30@ipxe.org>