IB 52 then VY 5119 at Madrid
Málaga → Madrid → Marrakesh
Timetable, Madrid time
15:30IB 52 from Málaga at the gate
11:50VY 5119 to Marrakesh leaves the gatealso AT 5306, BA 7117
20 h 20 apart on the timetable, overnight
VY 5119 leaves 20 h 20 after IB 52 arrives on the timetable: more than half a day, so not a connection we count.