From 28a6d943d95c6668b64c1625cac79302384df1b1 Mon Sep 17 00:00:00 2001 From: Dale Weiler Date: Mon, 12 Nov 2012 23:24:14 +0000 Subject: [PATCH] Some allocator changes (still doesn't work) --- mem.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mem.c b/mem.c index 695a8bc..7ac109c 100644 --- a/mem.c +++ b/mem.c @@ -317,5 +317,7 @@ void mem_free(void *ptr) { int main() { mem_init(1330); char *p = mem_alloc(sizeof(char) * 5); + mem_free(p); + mem_destroy(); /* blows up on second alloc, why? char *x = mem_alloc(200); */ } -- 2.39.2