With this we introduce some memory leak fixes. Some were found using valgrind, other using GCC/Clang static analyses.
Todo
-
fixes need to be checked that don't cause issues further along the compilation stages (such as with the AST) -
integrate memory leak checks into CI -
integrate other checks like CWE (https://cwe.mitre.org/) stuff