fixed a memory leak in response_t