diff --git a/esp32_device/main/secure_api.c b/esp32_device/main/secure_api.c index d58733e..14efb5e 100644 --- a/esp32_device/main/secure_api.c +++ b/esp32_device/main/secure_api.c @@ -237,6 +237,7 @@ sync_response *secure_api_sync_device() // Send request char *res = process_secure_request("/devices_api/mgmt/sync", body); + free(body); if (res == NULL) { ESP_LOGE(TAG, "Sync request failed!");