Turn off the power or gas supply to the heater, shut off the water supply, and contact a professional plumber immediately to assess and repair the leak.