A person who, pursuant to an order of attachment, pays or delivers to the sheriff money or other personal property in which a defendant has or will have an interest, or so pays a debt he owes the defendant, is discharged from his obligation to the defendant to the extent of the payment or delivery.
N.Y. CPLR 6204