some code refraction to get rid of memeory leakage

This commit is contained in:
Dhanya Maliakal
2015-02-04 16:11:13 +01:00
parent f30833a460
commit e975a75be9
5 changed files with 33 additions and 27 deletions

View File

@ -103,7 +103,6 @@ enum communicationProtocol{
nsent(0),
total_sent(0)// sender (client): where to? ip
{
// strcpy(hostname,host_ip_or_name);
struct hostent *hostInfo = gethostbyname(host_ip_or_name);
if (hostInfo == NULL){