bugfix: don't call skynet_free directly when send failed

This commit is contained in:
Cloud Wu
2015-06-16 10:56:28 +08:00
parent 039235b3a3
commit 7fa1d548ed
2 changed files with 11 additions and 1 deletions

View File

@@ -107,7 +107,6 @@ skynet_socket_poll() {
static int
check_wsz(struct skynet_context *ctx, int id, void *buffer, int64_t wsz) {
if (wsz < 0) {
skynet_free(buffer);
return -1;
} else if (wsz > 1024 * 1024) {
int kb4 = wsz / 1024 / 4;