summaryrefslogtreecommitdiff
path: root/src/macros.c
diff options
context:
space:
mode:
authorPreston Pan <preston@nullring.xyz>2023-01-08 19:17:57 -0800
committerPreston Pan <preston@nullring.xyz>2023-01-08 19:17:57 -0800
commit43f11a93385c4848bfad49510bdea2849f241816 (patch)
treeaafe396ad077acc6be6bef1d77a65d517cd30cf4 /src/macros.c
parent19367a27472a06634424e56c1eb21e4f53da4e9e (diff)
add some frees; still need to fix high amounts of memory leakage
Diffstat (limited to 'src/macros.c')
-rw-r--r--src/macros.c8
1 files changed, 4 insertions, 4 deletions
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;
}