Is this an idiom?
"That would only add fuel to the flames" - Catching Fire

If it isn't then is it another literary device?