LA 5741 then LA 5784 at Barcelona
Málaga → Barcelona → Porto
Timetable, Barcelona time
08:15LA 5741 from Málaga at the gate
20:25LA 5784 to Porto leaves the gate
12 h 10 apart on the timetable
LA 5784 leaves 12 h 10 after LA 5741 arrives on the timetable: more than half a day, so not a connection we count.