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/tcp_proxy.cpp | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/box/tcp_proxy.cpp b/box/tcp_proxy.cpp
index b4ec497..803874d 100644
--- a/box/tcp_proxy.cpp
+++ b/box/tcp_proxy.cpp
@@ -31,3 +31,8 @@
return false;
}
}
+
+bool TcpProxy::Publish(const std::string &ip, int port, std::string &&content)
+{
+ return Request(ip, port, std::move(content), ReplyCB());
+}
\ No newline at end of file
--
Gitblit v1.8.0