Fixed leak

This fix seems to do the trick. However, the implication is that the parser has many more such leaks.