Core/NetworkIO: Fixed memory leak