Free memory allocated with malloc()

This commit is contained in:
2024-03-20 00:02:41 -04:00
parent 1641cef13b
commit b6439bf7d5
4 changed files with 5 additions and 1 deletions

View File

@@ -133,6 +133,7 @@ SOCKET create_remote (int network,char transport, const char* address,int port,s
}
remote_addr_struct = (struct sockaddr_storage *)results->ai_addr;
network = inet_to_int(results->ai_family);
free(port_str);
} else {
create_addr(network,address,port,remote_addr_struct);
}