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
..
2019-03-16 13:29:43 +01:00
2018-12-14 17:59:08 +01:00
2018-05-07 09:34:12 -04:00
2018-12-14 17:59:08 +01:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-11-26 21:19:03 +01:00
2018-12-14 17:59:10 +01:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-12-14 17:59:08 +01:00
2019-04-21 10:26:52 +02:00
2019-04-21 10:26:52 +02:00
2019-04-21 10:26:52 +02:00
2019-06-19 16:56:11 +02:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2019-02-01 09:09:40 -05:00
2019-08-08 11:35:02 +02:00
2018-05-07 09:34:12 -04:00
2018-05-30 11:59:21 +02:00
2018-12-14 17:59:08 +01:00
2019-05-01 00:00:05 +02:00
2019-06-27 13:50:28 +02:00
2018-08-08 22:22:07 +02:00
2018-05-18 13:17:30 +02:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-08-21 16:21:37 +02:00
2018-04-08 23:00:58 -04:00
2019-01-26 08:13:54 -05:00
2018-12-14 17:59:08 +01:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-10-10 12:28:52 -05:00
2018-05-07 09:34:12 -04:00
2018-06-13 07:49:12 -04:00
2018-05-07 09:34:12 -04:00