From 489be34b462204071d81ba86644269e88e440bf5 Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期四, 30 九月 2021 13:31:15 +0800
Subject: [PATCH] fix SendReply free
---
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 4ecb201..5f3da0e 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.BHFree(src)
+ defer C.free(src)
return C.BHSendReply(src, getPtr(&data), C.int(len(data))) > 0
}
--
Gitblit v1.8.0