fix a memory leak

fix a memory leak