src/socket/net_mod_socket.c
@@ -15,6 +15,7 @@ rio_t * rio; for (auto map_iter = connectionMap.begin(); map_iter != connectionMap.end(); map_iter++) { rio = map_iter->second; Close(rio->rio_fd); if(rio != NULL) { free(rio); } @@ -91,7 +92,12 @@ } LABEL_ARR_PUSH: strcpy( ret_arr[i].host, node->host); if(node->host != NULL) { strcpy( ret_arr[i].host, node->host); } else { strcpy( ret_arr[i].host, "local"); } ret_arr[i].port = node->port; ret_arr[i].key = node->key; ret_arr[i].content = recv_buf;