From e574bed96f1a5f624f49ce6003756d48128aeb52 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 28 Sep 2024 16:42:10 +0200 Subject: [PATCH] Fix a memory leak --- esp32_device/main/secure_api.c | 1 + 1 file changed, 1 insertion(+) 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!");