From b6861a8bda7c0dfc9913a2430c80293a5ad74173 Mon Sep 17 00:00:00 2001 From: "ethan.du" Date: Tue, 28 Jul 2020 10:58:55 +0800 Subject: [PATCH] fix http close after ota success --- src/ota/src/ota_client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ota/src/ota_client.c b/src/ota/src/ota_client.c index 8d0f509..b23733b 100644 --- a/src/ota/src/ota_client.c +++ b/src/ota/src/ota_client.c @@ -310,6 +310,8 @@ int IOT_OTA_Destroy(void *handle) void IOT_OTA_Clear(void *handle) { OTA_Struct_t *h_ota = (OTA_Struct_t *)handle; + + ofc_deinit(h_ota->ch_fetch); memset(h_ota->url, 0, strlen(h_ota->url)); memset(h_ota->download_file_name, 0, strlen(h_ota->download_file_name)); memset(h_ota->version, 0, strlen(h_ota->version));