A small leak at a pumping station in Kansas caused the temporary closure of the TransCanada Corp. pipeline that transports 591,000 barrels of oil per day.
On the New York Mercantile Exchange, July delivery crude oil gained $1.99 to reach $102.59 per barrel. Home heating oil lost 0.62 cents to $3.0468 per gallon. Reformulated blendstock gasoline shed 0.28 cents to $3.0475 per gallon.
Henry Hub natural gas prices lost 1.4 cents to reach $4.652 per million British thermal units.
At the pump, the national average price of unleaded gasoline fell half a cent to $3.78 per gallon from Monday's 3.785, AAA said.