repair a bug about memory leak