fix some example memory leak
fix some example memory leak
Merge pull request #8 from daozhao/fix_example_memory

Fix example memory