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

Signed-off-by: bigsheeper <yihao.dai@zilliz.com>
pull/8901/head
bigsheeper 2021-09-29 23:24:36 +08:00 committed by GitHub
parent fc2dab174b
commit 954e01aed8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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