From d52c87dee3aac4af66ad2e1a86094ca27209d816 Mon Sep 17 00:00:00 2001
From: fujuntang <fujuntang@smartai.com>
Date: 星期二, 16 十一月 2021 16:19:45 +0800
Subject: [PATCH] Fix the service manager exits exceptionally issue.

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