LA 5741 then FR 8394 at Barcelona
Málaga → Barcelona → Budapest
Timetable, Barcelona time
08:15LA 5741 from Málaga at the gate
06:10FR 8394 to Budapest leaves the gate
21 h 55 apart on the timetable, overnight
FR 8394 leaves 21 h 55 after LA 5741 arrives on the timetable: more than half a day, so not a connection we count.