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