Remove valgrind warning
Merge pull request #7 from yjh0502/master

Fix valgrind warning