Free memory allocated with malloc()
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user