exhaust backfire

Repair the exhaust leak.
It's likely sucking air, and igniting unburnt fuel in the pipe.
Does it pop on decel to a stop or downhill ?