fix memory leak
Merge pull request #3 from sonots/fix_memory_leak

fix memory leak