Barcelona and Real Madrid both dropped points on their travels in La Liga, while Malaga defeated Rayo Vallecano and Levante edged out Sevilla.