diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2002-12-10 16:36:36 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2002-12-10 16:36:36 +0000 |
commit | 231a60c73a7c365f7a49e68fce114965f257f790 (patch) | |
tree | b60749c5c2d26c5182269832bf5aa658c99d843e /winsup/cygwin/net.cc | |
parent | bb241345b16a7e8ab123f4a0e4aa6622b927463c (diff) | |
download | newlib-231a60c73a7c365f7a49e68fce114965f257f790.zip newlib-231a60c73a7c365f7a49e68fce114965f257f790.tar.gz newlib-231a60c73a7c365f7a49e68fce114965f257f790.tar.bz2 |
* net.cc (free_protoent_ptr): Add missing free() for base structure.
(free_servent_pt): Ditto.
(free_hostent_pt): Ditto.
Diffstat (limited to 'winsup/cygwin/net.cc')
-rw-r--r-- | winsup/cygwin/net.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/net.cc b/winsup/cygwin/net.cc index a02d45f..06b9a5a 100644 --- a/winsup/cygwin/net.cc +++ b/winsup/cygwin/net.cc @@ -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; } } |