Clean up memory in from put operation.