Re: [PATCH] cmd: Fix potential memory leaks

2025-02-10 Thread Tom Rini
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 This leads to run time failures such as: https://source.denx.

[PATCH] cmd: Fix potential memory leaks

2025-02-05 Thread Maks Mishin
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 --- cmd/nvedit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/nvedit.c b/cmd/nvedit.c index 1f25980129..628f0a2935 100