commit | 732407f1bf12364375162e8fb73816532a5d139c | [log] [tgz] |
---|---|---|
author | Damien <damien.p.george@gmail.com> | Sun Dec 29 19:33:23 2013 +0000 |
committer | Damien <damien.p.george@gmail.com> | Sun Dec 29 19:33:23 2013 +0000 |
tree | bf795d7bab01d6d603eec761affac7091be9606a | |
parent | a1c8e5737cebba08909104d47c1dfd16ef80e6a1 [diff] |
Change memory allocation API to require size for free and realloc.
diff --git a/unix/main.c b/unix/main.c index 16012e7..73da1ec 100644 --- a/unix/main.c +++ b/unix/main.c
@@ -1,6 +1,7 @@ #include <stdint.h> #include <stdio.h> #include <string.h> +#include <malloc.h> #include "nlr.h" #include "misc.h" @@ -44,8 +45,8 @@ break; } char *line3 = str_join(line, '\n', line2); - m_free(line); - m_free(line2); + free(line); + free(line2); line = line3; } }