I have a gas fired stand alone water heater that leaks when water is being heated. I checked my water pressure at the inlet to the house and it is fine and the temp is set at 140 degrees. I installed a new valve and I have the same problem.

Do I need an expansion tank or something like that?