Fix memory leak detected by Cppcheck
Merge pull request #35 from tbeu/fix-mem-leak

Fix memory leak detected by Cppcheck