Resource leak fix, also cleanup.
Damn tabs.
Merge pull request #42 from lioncash/master

Just a resource leak fix. Also by cleanup I mean I mean I found one thing.