[#202] object: Reset marshal data on CutPayload

Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
Dmitrii Stepanov 2024-02-15 15:12:22 +03:00
parent aa41f71dcc
commit a86170f53a

View file

@ -571,6 +571,7 @@ func (o *Object) CutPayload() *Object {
ov2 := new(object.Object)
*ov2 = *(*object.Object)(o)
ov2.SetPayload(nil)
ov2.SetMarshalData(nil)
return (*Object)(ov2)
}