[xuehai] - fixed some memory leak