mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
remove this free would be better
This commit is contained in:
@@ -420,8 +420,6 @@ push_socket_data(struct harbor *h, const struct skynet_socket_message * message)
|
||||
}
|
||||
}
|
||||
if (s == NULL) {
|
||||
skynet_free(message->buffer);
|
||||
((struct skynet_socket_message *)message)->buffer = NULL;
|
||||
skynet_error(h->ctx, "Invalid socket fd (%d) data", fd);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user