From f2ef0eb59793a282e63c7585986680187bc9acf1 Mon Sep 17 00:00:00 2001 From: Leonardo de Moura Date: Tue, 26 Feb 2019 07:34:26 -0800 Subject: [PATCH] fix(runtime/alloc): bug at `import_objs` --- src/runtime/alloc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/alloc.cpp b/src/runtime/alloc.cpp index 5246a76385..52892a8042 100644 --- a/src/runtime/alloc.cpp +++ b/src/runtime/alloc.cpp @@ -204,7 +204,7 @@ void heap::import_objs() { while (to_import) { page * p = get_page_of(to_import); void * n = get_next_obj(to_import); - p->push_free_obj(n); + p->push_free_obj(to_import); to_import = n; } }