From 43f11a93385c4848bfad49510bdea2849f241816 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Sun, 8 Jan 2023 19:17:57 -0800 Subject: add some frees; still need to fix high amounts of memory leakage --- src/macros.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/macros.c') diff --git a/src/macros.c b/src/macros.c index 1643168..670e640 100644 --- a/src/macros.c +++ b/src/macros.c @@ -10,8 +10,8 @@ void die(char *message) { } char *char_to_string(char c) { - char *s = malloc(2); - s[0] = c; - s[1] = '\0'; - return s; + char *str = malloc(2); + str[0] = c; + str[1] = '\0'; + return str; } -- cgit