1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-12-31 16:07:09 +01:00
Files
u-boot-megous/drivers/usb
Ralph Siemsen fe876984a4 usb: gadget: f_dfu.c: fix memory leak
dfu_prepare_function() allocates N+1 descriptor header structures,
the last one being the "DFU Functional Descriptor".

dfu_unbind() handles de-allocation, but fails to free the final
one (eg. "DFU Functional Descriptor"), leading to memory leak.

Fixed by incrementing counter, as in dfu_prepare_function().

Signed-off-by: Ralph Siemsen <ralph.siemsen@linaro.org>
2019-08-08 11:35:02 +02:00
..
2018-11-26 21:19:03 +01:00