Fix a memory leak
This commit is contained in:
parent
ce8427b0aa
commit
e574bed96f
@ -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!");
|
||||
|
Loading…
Reference in New Issue
Block a user