fixed memory leaks, added cleanup code, added valgrind scripts to test binaries

This commit is contained in:
Martin Preuss
2023-08-09 17:24:44 +02:00
parent 4701a71986
commit b5916acf79
41 changed files with 991 additions and 170 deletions

16
vg_aqhomed.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
export AQHOME_LOGLEVEL=info
export LD_LIBRARY_PATH="0-build/aqhome/:$LD_LIBRARY_PATH"
valgrind \
--tool=memcheck --trace-children=yes -v --log-file=aqhomed.vg --leak-check=full --show-reachable=yes \
--track-origins=yes --num-callers=50 --keep-stacktraces=alloc-and-free \
0-build/apps/aqhomed/aqhomed \
-l aqhome.log \
-db aqhome.db \
-ma 192.168.117.192 -mp 1883 --mqttclientid=AQHOMELOGTEST \
-t 127.0.0.1 \
--pidfile=./aqhomed.pid \
-T 300