Fixed memory leak
Merge pull request #235 from evil159/patch-1

Fixed memory leak