USBD_UrbFree - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
// usbdlib.h

VOID USBD_UrbFree(
  [in] USBD_HANDLE USBDHandle,
  [in] PURB        Urb
);

View the official Windows Driver Kit DDI reference

NtDoc

No description available.

Windows Driver Kit DDI reference (nf-usbdlib-usbd_urbfree)

USBD_UrbFree function

Description

The USBD_UrbFree routine releases the URB that is allocated by USBD_UrbAllocate, USBD_IsochUrbAllocate, USBD_SelectConfigUrbAllocateAndBuild, or USBD_SelectInterfaceUrbAllocateAndBuild.

Parameters

USBDHandle [in]

USBD handle that is retrieved by the client driver in a previous call to the USBD_CreateHandle routine.

Urb [in]

Pointer to the URB structure to be released.

Remarks

You must call USBD_UrbFree to release the URB allocated by USBD_UrbAllocate after the request is complete.

Failure to call USBD_UrbFree can cause a memory leak.

For a code example, see USBD_UrbAllocate.

See also

Allocating and Building URBs

USBD_UrbAllocate