mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04: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:
parent
94250f0521
commit
669565477e
@ -691,7 +691,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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user