L293NE and 12v DC Motor

Using this set up is a diode required?

I read elsewhere that a diode is need when using the L293 vs using the L293D.

This diode was recommended.

1N5819

If so, how would that be wired, i.e where does the diode go?