From fdb0c375be54b3eb0e104480cde41f0626f85384 Mon Sep 17 00:00:00 2001 From: Ben Winston Date: Tue, 11 Nov 2025 14:24:42 -0500 Subject: debug build (thanks asan!) --- Makefile | 7 +++++-- later.c | 1 + 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; } -- cgit v1.2.3