mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 20:23:06 +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) {
|
if (s->type == SOCKET_TYPE_HALFCLOSE) {
|
||||||
// discard recv data
|
// discard recv data
|
||||||
|
FREE(buffer);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user