removed memleak
Merge pull request #2 from ukasz/patch-2

removed memleak