summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
}