fix memory leak bug
Merge pull request #1 from huairen/master

fix memory leak bug