Most likely your ancestor was never in a prison. Most of the Missouri Confederate troops stayed with their units after the surrender agreement was made. The men were then paroled with thier unit and provided transportation home by steamboat.