fixing memory leak
Merge pull request #129 from wcjohnson11/master

fixing memory leak