diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-01-12 14:19:38 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-01-12 14:19:38 -0500 |
commit | 46e58f70eb8fde8741705d5ae20692187d915cbc (patch) | |
tree | 0fb2e05eb1c25af3273245da7f6be522f6fe2d33 /allocator.c | |
parent | 7659a5ff48bb51baa6fcf5dfe13c8583413f7f4a (diff) |
fixed memory leaks
Diffstat (limited to 'allocator.c')
-rw-r--r-- | allocator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/allocator.c b/allocator.c index adf67c5..3ad11c1 100644 --- a/allocator.c +++ b/allocator.c @@ -8,7 +8,7 @@ static void *err_malloc(size_t bytes); static void *err_calloc(size_t n, size_t sz); static void *err_realloc(void *prev, size_t new_size); #ifdef TOC_DEBUG -#define NO_ALLOCATOR 1 /* useful for debugging; valgrind (maybe) checks writing past the end of a malloc, but that won't work with an allocator */ +/* #define NO_ALLOCATOR 1 /\* useful for debugging; valgrind checks writing past the end of a malloc, but that won't work with an allocator *\/ */ #endif /* number of bytes a page hold, not including the header */ #define PAGE_BYTES (16384 - sizeof(Page)) |