Fixed a memory leak
Merge pull request #88 from smokyonion/AddressMemoryLeaks

Fixed a memory leak