IB 5057 then LA 5743 at Barcelona
Granada → Barcelona → Málaga
Timetable, Barcelona time
12:20IB 5057 from Granada at the gate
11:35LA 5743 to Málaga leaves the gate
23 h 15 apart on the timetable, overnight
LA 5743 leaves 23 h 15 after IB 5057 arrives on the timetable: more than half a day, so not a connection we count.