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:
Cory McWilliams 2022-02-27 19:38:48 +00:00
parent 07a87ff9de
commit 498a093cde

View File

@ -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)
{
if (status)
{
tf_ssb_connection_t* connection = req->data;
_tf_ssb_connection_close(connection, "write failed asynchronously");
}
free(req);
}
@ -282,6 +287,7 @@ static void _tf_ssb_write(tf_ssb_connection_t* connection, void* data, size_t si
if (result)
{
_tf_ssb_connection_close(connection, "write failed");
free(write);
}
}