Wiktionary
leg it
vb. 1 (context intransitive slang English) To run away, to flee. 2 (context intransitive slang English) To hurry.