modify memory leak issue

modify memory leak issue