fix a memory leak
Merge pull request #40 from kyamada-github/fix-a-memory-leak

fix a memory leak