From 5ee77262bc6003c869b77ea606a4d80b2285d049 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Tue, 13 Feb 2018 12:24:10 +0100 Subject: [PATCH] mem plug_holes: fix copy& paste error --- src/core/mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/mem.c b/src/core/mem.c index a0b0d78f..3f361e79 100644 --- a/src/core/mem.c +++ b/src/core/mem.c @@ -500,7 +500,7 @@ plug_holes(struct mem *mem) lfree = pmem; } pmem->next = mem->next; - if (nmem->next != MEM_SIZE_ALIGNED) { + if (mem->next != MEM_SIZE_ALIGNED) { ptr_to_mem(mem->next)->prev = mem_to_ptr(pmem); } }