aboutsummaryrefslogtreecommitdiff
path: root/include/08.heap/heap.c
diff options
context:
space:
mode:
authorAleksa Vučković <aleksav013@gmail.com>2022-05-30 00:10:05 +0200
committerAleksa Vučković <aleksav013@gmail.com>2022-05-30 10:22:10 +0200
commitc45a7d924b10d9cc69a48896f7a6c99ecbf56493 (patch)
tree0fd94d340c8b9bb909b048b1ba33eea69c602464 /include/08.heap/heap.c
parentfe14916f60fe94db918a238d5d26ce2b0ed70e7e (diff)
\small u \smallsizeHEADmaster
Diffstat (limited to 'include/08.heap/heap.c')
-rw-r--r--include/08.heap/heap.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/08.heap/heap.c b/include/08.heap/heap.c
index 3120ed8..954a220 100644
--- a/include/08.heap/heap.c
+++ b/include/08.heap/heap.c
@@ -129,6 +129,7 @@ void k_heapBMFree(KHEAPBM *heap, void *ptr)
bi = ptroff / b->bsize;
/* .. */
bm = (uint8_t*)&b[1];
+
/* clear allocation */
id = bm[bi];
/* oddly.. GCC did not optimize this */