free buffer

This commit is contained in:
czlc
2014-10-28 16:43:29 +08:00
parent 0f4a771792
commit 9850ca1b94

View File

@@ -61,6 +61,8 @@ forward_message(int type, bool padding, struct socket_message * result) {
if (skynet_context_push((uint32_t)result->opaque, &message)) {
// todo: report somewhere to close socket
// don't call skynet_socket_close here (It will block mainloop)
if (sm->buffer)
skynet_free(sm->buffer);
skynet_free(sm);
}
}