FR 2240 then QR 3597 at Barcelona
Marrakesh → Barcelona → Málaga
Timetable, Barcelona time
18:00FR 2240 from Marrakesh at the gate
07:10QR 3597 to Málaga leaves the gate
13 h 10 apart on the timetable, overnight
QR 3597 leaves 13 h 10 after FR 2240 arrives on the timetable: more than half a day, so not a connection we count.