]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Some allocator changes (still doesn't work)
authorDale Weiler <killfieldengine@gmail.com>
Mon, 12 Nov 2012 23:24:14 +0000 (23:24 +0000)
committerDale Weiler <killfieldengine@gmail.com>
Mon, 12 Nov 2012 23:24:14 +0000 (23:24 +0000)
mem.c

diff --git a/mem.c b/mem.c
index 695a8bc7e10bb4f1b7886ad83c548af9ce22554f..7ac109c069d224796600bd1ed31d6319ec19b50a 100644 (file)
--- 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); */
 }