mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +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) {
|
if (s == NULL) {
|
||||||
skynet_free(message->buffer);
|
|
||||||
((struct skynet_socket_message *)message)->buffer = NULL;
|
|
||||||
skynet_error(h->ctx, "Invalid socket fd (%d) data", fd);
|
skynet_error(h->ctx, "Invalid socket fd (%d) data", fd);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user