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