🐞fix(hos_write): 修复hash_hos_info分配问题导致的内存错乱
This commit is contained in:
@@ -1063,13 +1063,14 @@ int hos_client_destory(hos_client_handle handle)
|
|||||||
{
|
{
|
||||||
delete_all(&hash_hos_info[i]);
|
delete_all(&hash_hos_info[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (hash_hos_info)
|
if (hash_hos_info)
|
||||||
{
|
{
|
||||||
free(hash_hos_info);
|
free(hash_hos_info);
|
||||||
}
|
}
|
||||||
|
|
||||||
free(handle);
|
free(handle);
|
||||||
|
g_hos_handle = NULL;
|
||||||
|
|
||||||
Aws::ShutdownAPI(g_options);
|
Aws::ShutdownAPI(g_options);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user