remove this free would be better

This commit is contained in:
云风
2017-08-24 10:01:47 +08:00
committed by GitHub
parent 40543d42d5
commit fad154f474

View File

@@ -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;
}