Command "sudo service tor restart"

When I run the command “sudo service tor restart” on the whonix gateway in virtualbox, the whonix workstation disconnects the internet. Can the IP address from whonix workstation be leaked at this time?

No.

Technical Introduction chapter Security Overview in Whonix wiki