diff options
Diffstat (limited to 'libusb/libusb.h')
-rw-r--r-- | libusb/libusb.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libusb/libusb.h b/libusb/libusb.h index f326afc..a306af9 100644 --- a/libusb/libusb.h +++ b/libusb/libusb.h @@ -521,7 +521,10 @@ enum libusb_transfer_flags { /** Automatically free() transfer buffer during libusb_free_transfer() */ LIBUSB_TRANSFER_FREE_BUFFER = 1<<1, - /** Automatically call libusb_free_transfer() after callback returns */ + /** Automatically call libusb_free_transfer() after callback returns. + * If this flag is set, it is illegal to call libusb_free_transfer() + * from your transfer callback, as this will result in a double-free + * when this flag is acted upon. */ LIBUSB_TRANSFER_FREE_TRANSFER = 1<<2, }; |