forked from cory/tildefriends
Some possible leaks?
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3851 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
07a87ff9de
commit
498a093cde
@ -270,6 +270,11 @@ static void _tf_ssb_connection_on_tcp_alloc(uv_handle_t* handle, size_t suggeste
|
|||||||
|
|
||||||
static void _tf_ssb_connection_on_write(uv_write_t* req, int status)
|
static void _tf_ssb_connection_on_write(uv_write_t* req, int status)
|
||||||
{
|
{
|
||||||
|
if (status)
|
||||||
|
{
|
||||||
|
tf_ssb_connection_t* connection = req->data;
|
||||||
|
_tf_ssb_connection_close(connection, "write failed asynchronously");
|
||||||
|
}
|
||||||
free(req);
|
free(req);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -282,6 +287,7 @@ static void _tf_ssb_write(tf_ssb_connection_t* connection, void* data, size_t si
|
|||||||
if (result)
|
if (result)
|
||||||
{
|
{
|
||||||
_tf_ssb_connection_close(connection, "write failed");
|
_tf_ssb_connection_close(connection, "write failed");
|
||||||
|
free(write);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user