--- projects/libstatgrab/src/libstatgrab/network_stats.c 2004/02/13 14:39:34 1.29 +++ projects/libstatgrab/src/libstatgrab/network_stats.c 2004/02/13 14:41:05 1.30 @@ -18,7 +18,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA * 02111-1307 USA * - * $Id: network_stats.c,v 1.29 2004/02/13 14:39:34 pajs Exp $ + * $Id: network_stats.c,v 1.30 2004/02/13 14:41:05 pajs Exp $ */ #ifdef HAVE_CONFIG_H @@ -474,6 +474,7 @@ network_iface_stat_t *get_network_iface_stats(int *ent ifaces++; } freeifaddrs(net); + close(s); #endif #ifdef SOLARIS @@ -583,7 +584,7 @@ network_iface_stat_t *get_network_iface_stats(int *ent } ifaces++; } - + close(sock); free(eth_tool_cmd_buf); #endif *entries = ifaces;