Make td run warn if Memory.txt gets created.

This commit is contained in:
Jordan Bancino 2023-03-22 14:57:57 +00:00
parent f3c4c0ac65
commit b8d00bc8bf
1 changed files with 6 additions and 0 deletions

View File

@ -154,6 +154,12 @@ recipe_build() {
recipe_run() {
if [ -f "build/$PROG" ]; then
"build/$PROG" -f contrib/development.conf
dataDir=$(< contrib/development.conf json -s "dataDir->@decode")
if [ -f "$dataDir/Memory.txt" ]; then
echo "WARNING: Memory.txt exists in the data directory; this means"
echo "Telodendria is leaking memory. Please fix memory leaks."
fi
else
echo "build/$PROG does not exist; build it first."
fi