summaryrefslogtreecommitdiffstatshomepage
path: root/unix/main.c
diff options
context:
space:
mode:
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 16012e7181..73da1ecfc2 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;
}
}