summaryrefslogtreecommitdiff
path: root/src/hos_client.cpp
diff options
context:
space:
mode:
author彭宣正 <[email protected]>2021-03-25 11:13:00 +0800
committer彭宣正 <[email protected]>2021-03-25 11:13:00 +0800
commitb1e698ab82b5d70d7e74a8d7a42cc3c9ba8ab683 (patch)
treefeee2536c349e09677114a506bde4338e539f31f /src/hos_client.cpp
parent94e8a4b54b27fa0e1ba7621d340a3c4c6f46ce8c (diff)
🐞fix(hos_client_create): 修复hos链接失败的内存泄漏问题v1.0.17
Diffstat (limited to 'src/hos_client.cpp')
-rw-r--r--src/hos_client.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hos_client.cpp b/src/hos_client.cpp
index 55926062..cd901cd2 100644
--- a/src/hos_client.cpp
+++ b/src/hos_client.cpp
@@ -232,6 +232,8 @@ hos_client_handle hos_client_create(const char *serverip, size_t port, const cha
{
delete g_hos_handle->S3Client;
Aws::ShutdownAPI(g_options);
+ free(g_hos_handle);
+ g_hos_handle = NULL;
return NULL;
}