aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile7
-rw-r--r--later.c1
2 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a7fb15f..e54b51b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,7 @@
-.PHONY: build
+.PHONY: build debug
build:
- cc -g later.c -Wall -Werror -o later
+ cc later.c -Wall -Werror -o later
+
+debug:
+ cc later.c -g -fsanitize=address -Wall -Werror -o later
diff --git a/later.c b/later.c
index 5dc7303..485b825 100644
--- a/later.c
+++ b/later.c
@@ -192,6 +192,7 @@ int main(int argc, char** argv) {
if (argi == argc) {
printf("unrecognized arguments\n");
+ free(file);
return 1;
}