fix memory leak bug on HttpQuery