summaryrefslogtreecommitdiff
path: root/unix/main.c
diff options
context:
space:
mode:
authorDamien <damien.p.george@gmail.com>2013-12-29 19:33:23 +0000
committerDamien <damien.p.george@gmail.com>2013-12-29 19:33:23 +0000
commit732407f1bf12364375162e8fb73816532a5d139c (patch)
treebf795d7bab01d6d603eec761affac7091be9606a /unix/main.c
parenta1c8e5737cebba08909104d47c1dfd16ef80e6a1 (diff)
Change memory allocation API to require size for free and realloc.
Diffstat (limited to 'unix/main.c')
-rw-r--r--unix/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/unix/main.c b/unix/main.c
index 16012e718..73da1ecfc 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 @@ static void do_repl(void) {
break;
}
char *line3 = str_join(line, '\n', line2);
- m_free(line);
- m_free(line2);
+ free(line);
+ free(line2);
line = line3;
}
}