Check for memory leaks in all tests that allocate memory

This commit is contained in:
Sam Tebbs 2020-10-28 17:36:40 +00:00
parent 374e95f322
commit 238e050c8c
7 changed files with 105 additions and 31 deletions

View file

@ -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;