Fix a memory leak

This commit is contained in:
Pierre HUBERT 2024-09-28 16:42:10 +02:00
parent ce8427b0aa
commit e574bed96f

View File

@ -237,6 +237,7 @@ sync_response *secure_api_sync_device()
// Send request // Send request
char *res = process_secure_request("/devices_api/mgmt/sync", body); char *res = process_secure_request("/devices_api/mgmt/sync", body);
free(body);
if (res == NULL) if (res == NULL)
{ {
ESP_LOGE(TAG, "Sync request failed!"); ESP_LOGE(TAG, "Sync request failed!");