UX 5432 then FR 5897 at Madrid
Málaga → Madrid → Torino
Timetable, Madrid time
07:30UX 5432 from Málaga at the gate
07:20FR 5897 to Torino leaves the gate
23 h 50 apart on the timetable, overnight
FR 5897 leaves 23 h 50 after UX 5432 arrives on the timetable: more than half a day, so not a connection we count.