modify memory leak issue