chore: Add issue for memory leak

main
Sean McBride 4 years ago
parent 022a9c5133
commit 53ffbbc830

@ -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;

Loading…
Cancel
Save