RCD Mallorca and Málaga have reached a loan agreement that will allow Alberto López to spend a season in Palma.