Fixed two other memory leaks I missed.
Merge pull request #497 from lioncash/master

Fixed two other mem leaks I missed.