The diode protect the circuit from voltage kick owing to the inductor. Energy will be dissipated from the winding resistance which also polarized the diode. The disadvantage is that the diode will length the current decay because the low resistance instead of the open circuit