🐞fix(hos_write): 修复hash_hos_info分配问题导致的内存错乱

This commit is contained in:
彭宣正
2021-04-07 14:54:30 +08:00
parent b3c9951471
commit e4360cf633

View File

@@ -1063,13 +1063,14 @@ int hos_client_destory(hos_client_handle handle)
{
delete_all(&hash_hos_info[i]);
}
if (hash_hos_info)
{
free(hash_hos_info);
}
free(handle);
g_hos_handle = NULL;
Aws::ShutdownAPI(g_options);