Skip to content

usbredirhost: close device on error

Victor Toso requested to merge victortoso/usbredir:fixleak into master

In case calloc() in usbredirparser_create() fails, we should be closing libusb_device_handle* as we own it (similar is done after earlier in same function after calloc for usbredirhost*).

Note that usbredirhost_close() will not work as host->handle is not set yet.

Signed-off-by: Victor Toso victortoso@redhat.com

Merge request reports

Loading