Merge pull request #1119 from tannewt/memory_free_fix

Fix crash due to unsigned index and 0 boundary loop.
crypto-aes
Scott Shawcroft 4 years ago committed by GitHub
commit 92ed5d7bf2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      supervisor/shared/memory.c

@ -43,7 +43,7 @@ void memory_init(void) {
}
void free_memory(supervisor_allocation* allocation) {
uint8_t index = 0;
int32_t index = 0;
bool found = false;
for (index = 0; index < CIRCUITPY_SUPERVISOR_ALLOC_COUNT; index++) {
found = allocation == &allocations[index];

Loading…
Cancel
Save