From 53ffbbc83004ec6cd9bd546630145f813dd4d5e8 Mon Sep 17 00:00:00 2001 From: Sean McBride Date: Sat, 12 Dec 2020 13:08:28 -0500 Subject: [PATCH] chore: Add issue for memory leak --- runtime/src/sandbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/sandbox.c b/runtime/src/sandbox.c index bf95502..3eff92d 100644 --- a/runtime/src/sandbox.c +++ b/runtime/src/sandbox.c @@ -424,7 +424,7 @@ sandbox_allocate_stack(struct sandbox *sandbox) char *addr_rw = mmap(addr + /* guard page */ PAGE_SIZE, sandbox->module->stack_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_FIXED, -1, 0); - /* TODO: Fix leak here */ + /* TODO: Fix leak here. Issue #132 */ if (addr_rw == MAP_FAILED) goto err_stack_allocation_failed; sandbox->stack_start = addr_rw;