diff options
-rw-r--r-- | research/heap.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/research/heap.sh b/research/heap.sh index 54ce1e3..e8fbd6f 100644 --- a/research/heap.sh +++ b/research/heap.sh @@ -39,4 +39,6 @@ __free() eval "${__free_tail}_next_free=\${__ptr}" eval "${__heap}_free_tail=\${__ptr}" fi + # Ensure next_free is null to delimit list end + eval "${__ptr}_next_free=" } |