fix the memory leak in new_TCP_server function