Skip to content

Commit 4b247ea

Browse files
committed
Add todo for handling improper free.
1 parent 5704bc8 commit 4b247ea

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

supervisor/shared/memory.c

+4
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ void free_memory(supervisor_allocation* allocation) {
5151
break;
5252
}
5353
}
54+
if (!found) {
55+
// Bad!
56+
// TODO(tannewt): Add a way to escape into safe mode on error.
57+
}
5458
if (allocation->ptr == high_address) {
5559
high_address += allocation->length / 4;
5660
for (index++; index < CIRCUITPY_SUPERVISOR_ALLOC_COUNT; index++) {

0 commit comments

Comments
 (0)