Check for memory leaks in all tests that allocate memory
This commit is contained in:
parent
374e95f322
commit
238e050c8c
7 changed files with 105 additions and 31 deletions
|
@ -28,6 +28,8 @@ pub const MemProfile = struct {
|
|||
fixed_allocator: std.heap.FixedBufferAllocator,
|
||||
};
|
||||
|
||||
pub var fixed_buffer_allocator: std.heap.FixedBufferAllocator = undefined;
|
||||
|
||||
const FIXED_ALLOC_SIZE = 1024 * 1024;
|
||||
const ADDR_OFFSET: usize = 100;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue