FR 3078 then FR 3682 at Lisbon
Barcelona → Lisbon → Málaga
Timetable, Lisbon time
20:50FR 3078 from Barcelona at the gate
15:10FR 3682 to Málaga leaves the gate
18 h 20 apart on the timetable, overnight
FR 3682 leaves 18 h 20 after FR 3078 arrives on the timetable: more than half a day, so not a connection we count.