New York Laws
Article 4 - Insolvent's Exemption From Arrest and Imprisonment
109 - Petitioner to Be Released From Imprisonment.

ยง 109. Petitioner to be released from imprisonment. If, at the time
the discharge is granted, the petitioner is imprisoned, by virtue of an
execution against his person issued, or of an order of arrest made, in
an action or special proceeding founded upon a debt, liability, or
judgment, as to which he is exempted from arrest or imprisonment, as
prescribed in the last section but one, the officer must forthwith
release him, on production of the discharge, or a certified copy of the
record thereof.