diff options
| author | 彭宣正 <[email protected]> | 2021-04-07 14:54:30 +0800 |
|---|---|---|
| committer | 彭宣正 <[email protected]> | 2021-04-07 17:56:27 +0800 |
| commit | e4360cf6334563054f6090d009cb947c31f6769b (patch) | |
| tree | d68db51cf7a0a401230bee394fd0f91a8785ef43 /src/hos_client.cpp | |
| parent | b3c9951471cd0b87a4745bdfd1a1f4817880d5b2 (diff) | |
🐞fix(hos_write): 修复hash_hos_info分配问题导致的内存错乱
Diffstat (limited to 'src/hos_client.cpp')
| -rw-r--r-- | src/hos_client.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hos_client.cpp b/src/hos_client.cpp index 082d8d27..47224f54 100644 --- a/src/hos_client.cpp +++ b/src/hos_client.cpp @@ -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); |
