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