aboutsummaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2022-01-31 19:05:50 -0700
committerChristian Cunningham <cc@localhost>2022-01-31 19:05:50 -0700
commita1f49718aee378fa075303c86106309091d56b80 (patch)
treedaa43fe9db527b69bc3b5e9cd967e6e5de5f5e29 /src/lib
parent09d5025fc34644a6e04380a61da15ba5d8e3f775 (diff)
Break exceptions off to own files
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/mem.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/mem.c b/src/lib/mem.c
index 73c6a48..2f50d3d 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) {