🐞fix(hos_client_create): 修复hos链接失败的内存泄漏问题

This commit is contained in:
彭宣正
2021-03-25 11:13:00 +08:00
parent 94e8a4b54b
commit b1e698ab82

View File

@@ -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;
}