Judge Heidi Kubik KC said: “You were out and about on the street with the dog, even at that stage not in the best of health and frankly not in a capable state of restraining the dog, who was not muzzled at the time.
“It set about attacking three separate people including an 11-year-old girl. It was a horrific attack. She was undoubtedly and rightly terrified.”
The judge said the “vile, threatening and abusive” harassment of a former partner in 2022 on its own merited a custodial sentence.
Ajaz had lung disease and cardiac problems, the court heard.
The judge said: “Bearing in mind your guilty pleas and the health conditions that you now suffer, I take the view that it would not be in the interests of justice to send you to immediate custody.”
Ajaz was banned from owning a dog for the rest of his life and made subject to a restraining order.