summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dalist_memfn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dalist_memfn.c b/src/dalist_memfn.c
index 1176875..6ac40d9 100644
--- a/src/dalist_memfn.c
+++ b/src/dalist_memfn.c
@@ -115,7 +115,7 @@ int dalist_deposit_memory_block(
naddr_upper = naddr + alloc_size;
/* chain of free nodes */
- while ((naddr_next + node_size) < naddr_upper) {
+ while ((naddr_next + node_size) <= naddr_upper) {
fnode = (struct dalist_node *)naddr;
fnode_next = (struct dalist_node *)naddr_next;