FR 482 then FR 4597 at Barcelona
Málaga → Barcelona → Porto
Timetable, Barcelona time
00:35FR 482 from Málaga at the gate
22:50FR 4597 to Porto leaves the gate
22 h 15 apart on the timetable
FR 4597 leaves 22 h 15 after FR 482 arrives on the timetable: more than half a day, so not a connection we count.