fixed memory leak in network interface