From 232227035c8d6a31eaaf193863cbadda949c08fd Mon Sep 17 00:00:00 2001
From: liuxiaolong <liuxiaolong@aiotlink.com>
Date: 星期二, 20 七月 2021 20:19:26 +0800
Subject: [PATCH] fix memory leak
---
box/center.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/box/center.cpp b/box/center.cpp
index 78135d1..e0abbb3 100644
--- a/box/center.cpp
+++ b/box/center.cpp
@@ -146,7 +146,7 @@
replyer(reply);
auto hosts = center->FindRemoteSubClients(pub.topic());
for (auto &host : hosts) {
- tcp_proxy.Publish(host, kBHCenterPort, pub.SerializeAsString());
+ tcp_proxy.Publish(host, kBHCenterPort, msg.content());
}
}
};
--
Gitblit v1.8.0