If you can determine that the leak is small and insignificant, you can fix the leak with welding the steel. All you have to do is weld the pipe or tube tightly around the part of the pipe where the leak occurred. If done correctly, the leak is sealed with the pipe fittings.
Pipe clamps can be very useful in emergencies when a pipe crack occurs. You can use butt weld pipe fittings from https://sanifittings.com/collections/butt-weld-fittings as permanent equipment fix by placing it on the part of the leaking pipe. This gives you time to find more sustainable solutions.
All hope is not lost if you cannot turn off the water supply. In such situations, you can use a pipe freezing device to harden the water and stop the flow effectively. After freezing the drainpipe, cut the damaged part and replace it.
Tighten each nut for compression fittings. Be careful not to be too tight, otherwise, the leak may get worse.
For welded joints, use a hot air lamp or hair dryer to remove moisture from the pipe after you dry it. Then add a small amount of cleaning flux to the dry pipe joint. You can then dilute the flow by reheating the connection and using flux to close the leaky connection.
Stainless steel pipes can be used to permanently stop a leak before dismantling the pipe. It is better to choose stainless steel pipes or tubes for compression fittings. After applying the steel pipes, you must turn off the water supply before you can disassemble the pipe and fix the leak.