rm the unused calloc wrapper from memory_region

it doesn't actually call calloc, so it's fairly pointless
This commit is contained in:
Daniel Micay
2013-02-14 18:28:04 -05:00
parent 2e0614750c
commit 1a41b484bf
4 changed files with 5 additions and 18 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ check_stack_canary(stk_seg *stk) {
stk_seg *
create_stack(memory_region *region, size_t sz) {
size_t total_sz = sizeof(stk_seg) + sz;
stk_seg *stk = (stk_seg *)region->malloc(total_sz, "stack", false);
stk_seg *stk = (stk_seg *)region->malloc(total_sz, "stack");
memset(stk, 0, sizeof(stk_seg));
stk->end = (uintptr_t) &stk->data[sz];
add_stack_canary(stk);