Fix memory leak in get_string() for large responses.