FR 4584 then LA 5745 at Barcelona
Porto → Barcelona → Málaga
Timetable, Barcelona time
18:55FR 4584 from Porto at the gate
12:50LA 5745 to Málaga leaves the gate
17 h 55 apart on the timetable, overnight
LA 5745 leaves 17 h 55 after FR 4584 arrives on the timetable: more than half a day, so not a connection we count.