From a2236fffa265342454430000a7ff0d710807ebb9 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期四, 30 九月 2021 13:35:38 +0800
Subject: [PATCH] SendReply use BHFree

---
 api/bhsgo/bhome_node.go |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/api/bhsgo/bhome_node.go b/api/bhsgo/bhome_node.go
index 5f3da0e..7fcb43c 100644
--- a/api/bhsgo/bhome_node.go
+++ b/api/bhsgo/bhome_node.go
@@ -209,7 +209,7 @@
 
 func SendReply(src unsafe.Pointer, rep *bh.MsgRequestTopicReply) bool {
 	data, _ := rep.Marshal()
-	defer C.free(src)
+	defer C.BHFree(src, 0)
 	return C.BHSendReply(src, getPtr(&data), C.int(len(data))) > 0
 }
 

--
Gitblit v1.8.0