[PATCH] cmd: Fix potential memory leaks

Tom Rini trini at konsulko.com
Tue Feb 11 02:17:25 CET 2025


On Wed, Feb 05, 2025 at 07:00:25PM +0300, Maks Mishin wrote:

> Dynamic memories, referenced by 'ptr' and 'res' is allocated 
> by calling function 'hexport_r' and lost when the function success returns.
> 
> Signed-off-by: Maks Mishin <maks.mishinFZ at gmail.com>

This leads to run time failures such as:
https://source.denx.de/u-boot/u-boot/-/jobs/1018913

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250210/2e5ce3c7/attachment.sig>


More information about the U-Boot mailing list