mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-07 05:40:59 +02:00
fix(usb_host): return ESP_ERR_NO_MEM on failed alloc in client register
Fixes issue where ESP_ERR_NO_MEM was being silently discarded after cleaning up after a failed malloc in usb_host_client_register. Signed-off-by: Daniel Mangum <georgedanielmangum@gmail.com>
This commit is contained in:
committed by
Tomas Rezucha
parent
15fb892fe7
commit
e555945318
@@ -698,7 +698,7 @@ alloc_err:
|
||||
vSemaphoreDelete(event_sem);
|
||||
}
|
||||
heap_caps_free(client_obj);
|
||||
return ESP_OK;
|
||||
return ret;
|
||||
}
|
||||
|
||||
esp_err_t usb_host_client_deregister(usb_host_client_handle_t client_hdl)
|
||||
|
Reference in New Issue
Block a user