From f451cc936991e5095b1cb02262b5b0a9f12693f1 Mon Sep 17 00:00:00 2001 From: jvech Date: Sun, 8 Sep 2024 09:25:50 -0500 Subject: fix: memory leaks fixed --- Makefile | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7223e7b..b829f3d 100644 --- a/Makefile +++ b/Makefile @@ -61,5 +61,12 @@ debug: build gdb -x utils/commands.gdb --tui --args ${BIN} train data/xor.json -e 100 @#gdb -x utils/commands.gdb --tui --args ${BIN} predict data/sample_data.json +check_leaks: build + valgrind --leak-check=yes \ + --log-file=leaks.log \ + --leak-check=full \ + --show-leak-kinds=all \ + ./${BIN} train -c utils/settings.cfg data/xor.json + clean: @rm $(OBJDIR) -rv -- cgit v1.2.3-70-g09d2