* net.cc (free_protoent_ptr): Add missing free() for base structure.
(free_servent_pt): Ditto. (free_hostent_pt): Ditto.
This commit is contained in:
parent
bb241345b1
commit
231a60c73a
@ -1,3 +1,9 @@
|
||||
2002-12-10 Corinna Vinschen <corinna@vinschen.de>
|
||||
|
||||
* net.cc (free_protoent_ptr): Add missing free() for base structure.
|
||||
(free_servent_pt): Ditto.
|
||||
(free_hostent_pt): Ditto.
|
||||
|
||||
2002-12-10 Craig McGeachie <slapdau@yahoo.com.au>
|
||||
|
||||
* netdb.cc (parse_alias_list, parse_services_line)
|
||||
|
@ -437,6 +437,7 @@ free_protoent_ptr (struct protoent *&p)
|
||||
if (p->p_name)
|
||||
free (p->p_name);
|
||||
free_char_list (p->p_aliases);
|
||||
free ((void *) p);
|
||||
p = NULL;
|
||||
}
|
||||
}
|
||||
@ -784,6 +785,7 @@ free_servent_ptr (struct servent *&p)
|
||||
if (p->s_proto)
|
||||
free (p->s_proto);
|
||||
free_char_list (p->s_aliases);
|
||||
free ((void *) p);
|
||||
p = NULL;
|
||||
}
|
||||
}
|
||||
@ -915,6 +917,7 @@ free_hostent_ptr (struct hostent *&p)
|
||||
free ((void *) p->h_name);
|
||||
free_char_list (p->h_aliases);
|
||||
free_addr_list (p->h_addr_list);
|
||||
free ((void *) p);
|
||||
p = NULL;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user