Revert "Adjust parser to not malloc when a thrown error might preventing allocations from beeing freed"

This reverts commit f86cfd345b145544baf9e4205f86800b3a44a9db.