A man accused of stealing cash from two vending machines was arrested in part because he left his wallet behind during one of the alleged break-ins, San Antonio police say.

Zachary Long, 26, is facing numerous charges including burglary of a building.

According to an arrest affidavit, Long broke into an apartment clubhouse in the 8800 block of Starcrest twice in March.

The affidavit stated Long only stole $123 from the vending machine, but caused about $5,000 worth of damage.

Investigators tracked down Long using his fingerprints, surveillance video and his wallet.