fixed memory leaks

This commit is contained in:
2023-08-14 23:30:54 +02:00
parent 5d82ad37f7
commit fc6ef0f267
11 changed files with 106 additions and 85 deletions

View File

@@ -37,11 +37,15 @@ common_SOURCES = \
run: $(sbin_PROGRAMS)
./cworker
if HAVE_VALGRIND
VALGRIND_OPT = --tool=memcheck
endif
test: $(bin_TESTS)
@for test in $(bin_TESTS); do \
echo === Test $${test} ==; \
./$${test}; \
echo === Done $${test} ==; \
echo ======= Test $${test} ======; \
$(VALGRIND) $(VALGRIND_OPT) ./$${test}; \
echo ====== Done $${test} ======; \
done
bin_TESTS = \