Valgrind can be used to debug memory leaks.
You'll need to download the Python valgrind suppressions file, read the documentation for using this, tl;dr uncomment the *Free, *Realloc suppressions in the file.
Install python3-dbg to get python3dm for which you'll need to recompile the program and any native libs with (e.g. numpy)
python3-dbg
python3dm
$ valgrind --suppressions=valgrind-python.supp python3dm -m flowty ...
Or for tests
$ valgrind --suppressions=valgrind-python.supp python3dm -m pytest
If you don't use python3-dbg you'll end up with a huge number of false positives thrown by the python interpreter.
There was an error while loading. Please reload this page.