From 09d5025fc34644a6e04380a61da15ba5d8e3f775 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Tue, 25 Jan 2022 22:23:44 -0700 Subject: Clear out Mutex memory --- src/lib/mem.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib') diff --git a/src/lib/mem.c b/src/lib/mem.c index 2f50d3d..73c6a48 100644 --- a/src/lib/mem.c +++ b/src/lib/mem.c @@ -222,10 +222,10 @@ void free(void* memloc) unsigned char size = base[MEM_SIZE_OFFSET]; // TODO: Use Null PID base[MEM_USE_OFFSET] = 0; - // Clear out old memory - for(unsigned int i = 0; i < size; i++) { - base[i + MEM_BASE_SIZE] = 0; - } + // // Clear out old memory + // for(unsigned int i = 0; i < size; i++) { + // base[i + MEM_BASE_SIZE] = 0; + // } // If it is the last entry, clear it and move the heap top down if (base + size + MEM_META_SIZE == rpi_heap_top) { while(base[MEM_USE_OFFSET] == 0 && base >= rpi_heap) { -- cgit v1.2.1