From: Dale Weiler Date: Mon, 12 Nov 2012 23:24:14 +0000 (+0000) Subject: Some allocator changes (still doesn't work) X-Git-Tag: 0.1~27 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=28a6d943d95c6668b64c1625cac79302384df1b1;p=xonotic%2Fgmqcc.git Some allocator changes (still doesn't work) --- 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); */ }