From 27d8bc7cad4a8f68c2da3efbb77f45ec70ae40e6 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期三, 05 一月 2022 14:11:39 +0800
Subject: [PATCH] pb.go MsgQueryProcReply add subLocalTopics and subNetTopics

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