Some allocator changes (still doesn't work)

This commit is contained in:
Dale Weiler 2012-11-12 23:24:14 +00:00
parent baaa6407d5
commit 28a6d943d9

2
mem.c
View file

@ -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); */
}