mirror of
https://github.com/TokTok/c-toxcore
synced 2026-06-04 10:21:38 +00:00
Merge branch 'lobiCode-myChan'
This commit is contained in:
@@ -953,6 +953,7 @@ TCP_Server *new_TCP_server(uint8_t ipv6_enabled, uint16_t num_sockets, const uin
|
||||
temp->efd = epoll_create(8);
|
||||
|
||||
if (temp->efd == -1) {
|
||||
free(temp->socks_listening);
|
||||
free(temp);
|
||||
return NULL;
|
||||
}
|
||||
@@ -992,6 +993,7 @@ TCP_Server *new_TCP_server(uint8_t ipv6_enabled, uint16_t num_sockets, const uin
|
||||
}
|
||||
|
||||
if (temp->num_listening_socks == 0) {
|
||||
free(temp->socks_listening);
|
||||
free(temp);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user