FR 7241 then FR 7054 at Dublin
Madrid → Dublin → Málaga
Timetable, Dublin time
11:40FR 7241 from Madrid at the gate
06:25FR 7054 to Málaga leaves the gate
18 h 45 apart on the timetable, overnight
FR 7054 leaves 18 h 45 after FR 7241 arrives on the timetable: more than half a day, so not a connection we count.