[U-Boot] [PATCH] usb: gadget: f_dfu.c: fix memory leak

Ralph Siemsen ralph.siemsen at linaro.org
Thu Jun 27 15:38:52 UTC 2019


Small correction:

> Notes:
>     The array of pointers allocated in dfu_prepare_function() is larger
>     than necessary. For some reason it is N+2 when N+1 would suffice.
>     Not a memory leak, so did not address in this commit.

Please ignore that note... the N+2 element is indeed needed, it
serves as NULL terminator for the list. Not sure how I missed that.

Ralph


More information about the U-Boot mailing list