From 3e989921c29534d38dbf6009851389fc4f4e226e Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Fri, 9 Jan 2015 17:00:35 +0900 Subject: Mem leak fixes, warning fixes --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 46d2144..4050a7b 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ PROJECT=microbbs CC=gcc -CFLAGS= +CFLAGS= SOURCES=articles.c bbsconfig.c buildinfo.c captcha.c file_use.c ini.c list.c login.c logs.c mmm.c motd.c sds.c session.c statistics.c sysinfo.c telnetd.c textview.c todo.c vote.c OBJECTS=$(SOURCES:.c=.o) BUILD_DIR=build_dir @@ -25,6 +25,10 @@ $(PROJECT): $(SOURCES) %.o: %.c $(CC) $(CFLAGS) -c $< -o $(BUILD_DIR)/$@ +leak: + valgrind --leak-check=full --track-origins=yes --log-file=log.txt ./$(PROJECT) + + clean: rm -rf *.o microbbs cd ./$(BUILD_DIR); rm -rf *.o -- cgit v1.2.3