fix a bug that eat up the whole memory
Merge pull request #4 from tiancaiamao/master

fix a bug that eat up the whole memory