[channels,urbdrc] fix possible leak in error branch

This commit is contained in:
akallabeth 2025-03-11 08:58:13 +01:00
parent 0c0aacc67f
commit 2b26cf74e0
No known key found for this signature in database
GPG Key ID: A49454A3FC909FD5

View File

@ -654,6 +654,7 @@ static UINT urb_select_interface(IUDEVICE* pdev, GENERIC_CHANNEL_CALLBACK* callb
"[MS-RDPEUSB] 2.2.9.3 TS_URB_SELECT_INTERFACE::OutputBufferSize must be 0, got "
"%" PRIu32,
OutputBufferSize);
msusb_msinterface_free(MsInterface);
return ERROR_INVALID_DATA;
}