summaryrefslogtreecommitdiff
path: root/supervisor/shared/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'supervisor/shared/memory.c')
-rwxr-xr-xsupervisor/shared/memory.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/supervisor/shared/memory.c b/supervisor/shared/memory.c
index 051f55a70..34c5dfb6f 100755
--- a/supervisor/shared/memory.c
+++ b/supervisor/shared/memory.c
@@ -51,6 +51,10 @@ void free_memory(supervisor_allocation* allocation) {
break;
}
}
+ if (!found) {
+ // Bad!
+ // TODO(tannewt): Add a way to escape into safe mode on error.
+ }
if (allocation->ptr == high_address) {
high_address += allocation->length / 4;
for (index++; index < CIRCUITPY_SUPERVISOR_ALLOC_COUNT; index++) {