Fix: memory leak found by valgrind was corrected.
Merge pull request #443 from yuusuke/fix_memory_leak

Fix: memory leak found by valgrind was corrected.