Marcelo Bielsa's Whites fell behind after just nine seconds following a Robin Koch own goal but United led 2-1 at the break after Mateusz Klich and Patrick Bamford struck.
Unai Emery's La Liga outfit then drew level in the 81st minute through Dani Raba as part of an entertaining contest that was played behind closed doors at York City.
Leeds United writer Lee Sobot hands out the scores from the final warm-up game ahead of next Saturday's Premier League opener against arch rivals Manchester United at Old Trafford.

13. Helder Costa
6 - Given 15 minutes on the right flank when replacing Raphinha. Quickly became involved but again with no end product, twice when cutting inside although unlucky to see a fierce looking shot deflected over. Photo by Tony Marshall/Getty Images.

14. Tyler Roberts
6 - Came on for Rodrigo at the break in the no 10 role and arguably fared slightly better. Looked confident and produced some neat touches in tight spaces but just needs something to click in the final third. Picture by Bruce Rollinson.