mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-14 01:27:41 +00:00
daemon: fix memory leak in socket_connection
This commit is contained in:
parent
6358dec73f
commit
ec7a14efef
@ -405,6 +405,7 @@ int socket_connection_create_tcp(int port){
|
||||
WSAEVENT event = WSACreateEvent();
|
||||
if (!event){
|
||||
log_error("Error creating WSAEvent for socket");
|
||||
free(ds);
|
||||
return -1;
|
||||
}
|
||||
int res = WSAEventSelect(fd, event, FD_ACCEPT | FD_CLOSE);
|
||||
|
Loading…
x
Reference in New Issue
Block a user