fix memory leak by network reply