A beautiful dead-ball effort brought Leo level with his former Brazilian team-mate, who had reached the same tally way back in 2006-7.
Barcelona star Lionel Messi has equalled a La Liga record previously held by former team-mate Ronaldinho with his latest jaw-dropping free kick.
The Argentine has been lethal from dead-ball situations in 2018, scoring six in all competitions since the start of the calendar year.
Leganes goalkeeper Pichu Cuellar became the latest goalkeeper to feel his wrath on Saturday, as Messi opened the scoring at Camp Nou with a stunning effort that gave him no chance.
It was his sixth in this year’s Liga campaign alone, bringing him level with another Blaugrana idol.
Ronaldinho had been the last man to score six free kicks in a single season, a feat he achieved back in 2006-07 alongside the then-teenage Argentine.
Since the Brazilian left, Messi has assumed his mantle both as No. 10 and as Barca’s set-piece expert.
Leo added another goal before half time to take his personal Liga tally to 28, eight clear of nearest Pichichi rivals Luis Suarez and Cristiano Ronaldo.