A New Jersey man found himself in cuffs just five minutes after being released by cops over the weekend.

The 38-year-old Paterson man had been arrested on Monday afternoon after police got a call about a man trying to throw a brick through the window of a parked car outside a shopping center in Wayne.

When they got on scene, police said they found the man -- who had been previously banned from the shopping center's property -- holding a pocketbook stolen from the vehicle along with two bags of heroin.

They arrested the man on burglary and drug charges and took him to the police department for processing.

He was released from custody a short time later, and Wayne police said two detectives watched him walk to Wayne Valley High School. Once there, authorities alleged the man rolled down the window of a Jeep in a parking lot before stealing three pieces of Under Armour-branded clothing.

Authorities said the two detectives confronted the man as he tried to walk away, and he was again cuffed on burglary charges.

Authorities said only 5 minutes passed from the time the man left police custody to his second arrest.

He was booked on $500 bail and was being held at the Passaic County Jail.