diff options
| author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2010-11-13 19:25:11 +0000 |
|---|---|---|
| committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2010-11-13 19:25:11 +0000 |
| commit | 31f7072c3bc9398c4782df2e473a7e67dae2e899 (patch) | |
| tree | fc3692a2e1cc644599f47393564a242be0d4b2cd /lib/libusb/libusb10.c | |
| parent | f10ff4abcdce33ddef9642f533755b1295e6150c (diff) | |
Notes
Diffstat (limited to 'lib/libusb/libusb10.c')
| -rw-r--r-- | lib/libusb/libusb10.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/libusb/libusb10.c b/lib/libusb/libusb10.c index 5767cb22d3b0..3b8d567dae9b 100644 --- a/lib/libusb/libusb10.c +++ b/lib/libusb/libusb10.c @@ -800,6 +800,10 @@ libusb_free_transfer(struct libusb_transfer *uxfer) if (uxfer == NULL) return; /* be NULL safe */ + /* check if we should free the transfer buffer */ + if (uxfer->flags & LIBUSB_TRANSFER_FREE_BUFFER) + free(uxfer->buffer); + sxfer = (struct libusb_super_transfer *)( (uint8_t *)uxfer - sizeof(*sxfer)); |
