FR 495 then UX 5043 at Madrid
Dublin → Madrid → Málaga
Timetable, Madrid time
22:25FR 495 from Dublin at the gate
10:30UX 5043 to Málaga leaves the gate
12 h 05 apart on the timetable, overnight
UX 5043 leaves 12 h 05 after FR 495 arrives on the timetable: more than half a day, so not a connection we count.