mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
bugfix: missing FREE(buffer) when socket is closing
This commit is contained in:
@@ -575,6 +575,7 @@ forward_message(struct socket_server *ss, struct socket *s, struct socket_messag
|
||||
|
||||
if (s->type == SOCKET_TYPE_HALFCLOSE) {
|
||||
// discard recv data
|
||||
FREE(buffer);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user