fix serious memory leak
Merge pull request #1 from tony2001/fast

fix serious memory leak