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
|
// 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!");
|
||||||
|
Loading…
Reference in New Issue
Block a user