The home side could have led 2-0 inside 20 minutes, but found themselves behind after 26 minutes when Manuel Iturra converted from close range.
Chances remained at a premium in the second period, but a header from Ignacio Camacho in the final minute made it 2-2 ahead of the second leg.
Read how it all unfolded in Sports Mole's minute-by-minute live commentary of the action below.
BARCELONA: Pinto; Montoya, Puyol, Mascherano, Adriano; Song, Thiago, Iniesta; Messi, Tello, Sanchez
MALAGA: Kameni; Weligton, Sanchez, Gamez, Portillo; Iturra, Buonanotte, Camacho, Eliseu; Fernandez, Saviola