diff --git a/src/ota/src/ota_client.c b/src/ota/src/ota_client.c index ef42e41..7acb2bb 100644 --- a/src/ota/src/ota_client.c +++ b/src/ota/src/ota_client.c @@ -282,7 +282,6 @@ int IOT_OTA_Destroy(void *handle) } osc_deinit(h_ota->ch_signal); - ofc_deinit(h_ota->ch_fetch); ota_lib_md5_deinit(h_ota->md5); if (NULL != h_ota->url) { @@ -305,6 +304,14 @@ int IOT_OTA_Destroy(void *handle) HAL_Free(h_ota->download_name); } + if (NULL != h_ota->current_version) { + HAL_Free(h_ota->current_version); + } + + if (NULL != h_ota->taskID) { + HAL_Free(h_ota->taskID); + } + HAL_Free(h_ota); return SUCCESS_RET; }