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

View file

@ -154,6 +154,12 @@ recipe_build() {
recipe_run() { recipe_run() {
if [ -f "build/$PROG" ]; then if [ -f "build/$PROG" ]; then
"build/$PROG" -f contrib/development.conf "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 else
echo "build/$PROG does not exist; build it first." echo "build/$PROG does not exist; build it first."
fi fi