Before the gun was discovered at the jail, it was apparently in the suspect's boot while he rode in a police car, while he was questioned at police headquarters and while he was being booked at the Wake County Jail.
Sorry for the horrible pun, but it seemed to fit...