about summary refs log tree commit diff stats
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Santos <dacs.git@brilhante.top>2022-03-12 13:21:39 +0000
committerDaniel Santos <dacs.git@brilhante.top>2022-03-12 13:21:39 +0000
commit90c869857b55782d4d6b21434a58da4d2f9e6be3 (patch)
treeb187c67c5f71d66a8b5bf800f752ac1c14948fe8 /Makefile
parent06bb8994d4675495e3fbd660378ec370337c884d (diff)
downloadnumericx-c-90c869857b55782d4d6b21434a58da4d2f9e6be3.tar.gz
free memory
 * add mem rule to Makefile
 * add free_numeral()
 * free all memory allocations

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 4943dd3..d923716 100644
--- a/Makefile
+++ b/Makefile
@@ -55,3 +55,6 @@ clean:
 run: decimal-earth
 	./decimal-earth 21
 
+mem: decimal-earth
+	valgrind --leak-check=full --show-leak-kinds=all -s decimal-earth 999
+