Browse code

Extra pkg_free in free_hostent removed

Jan Janak authored on 20/03/2003 16:47:16
Showing 1 changed files
... ...
@@ -163,12 +163,15 @@ void free_hostent(struct hostent *dst)
163 163
 	int r;
164 164
 	if (dst->h_name) pkg_free(dst->h_name);
165 165
 	if (dst->h_aliases){
166
-		for(r=0; dst->h_aliases[r]; r++)	pkg_free(dst->h_aliases[r]);
167
-		pkg_free(dst->h_aliases[r]);
166
+		for(r=0; dst->h_aliases[r]; r++) {
167
+			pkg_free(dst->h_aliases[r]);
168
+		}
168 169
 		pkg_free(dst->h_aliases);
169 170
 	}
170 171
 	if (dst->h_addr_list){
171
-		for (r=0; dst->h_addr_list[r];r++) pkg_free(dst->h_addr_list[r]);
172
+		for (r=0; dst->h_addr_list[r];r++) { 
173
+			pkg_free(dst->h_addr_list[r]);
174
+		}
172 175
 		pkg_free(dst->h_addr_list[r]);
173 176
 		pkg_free(dst->h_addr_list);
174 177
 	}