未验证 提交 954e01ae 编写于 作者: B bigsheeper 提交者: GitHub

[skip ci] Add comment for protoCGo.destruct (#8871)

Signed-off-by: Nbigsheeper <yihao.dai@zilliz.com>
上级 fc2dab17
......@@ -55,6 +55,7 @@ func MarshalForCGo(msg proto.Message) (*ProtoCGo, error) {
return protoCGo, nil
}
// destruct free ProtoCGo go memory
func (protoCGo *ProtoCGo) destruct() {
// NOTE: at ProtoCGo, blob is go heap memory, no need to destruct
protoCGo.blob = nil
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册