Re: [PATCH] tools: image-host: Fix potential memory leaks

2025-02-10 Thread Tom Rini
On Mon, Feb 03, 2025 at 07:10:12PM +0300, Maks Mishin wrote: > For a variable `info.name` memory is allocated when calling the > `fit_image_setup_sig` function and is lost when the error code is returned. > > The situation is similar for the `region_prop` variable, > the memory for which is all

[PATCH] tools: image-host: Fix potential memory leaks

2025-02-03 Thread Maks Mishin
For a variable `info.name` memory is allocated when calling the `fit_image_setup_sig` function and is lost when the error code is returned. The situation is similar for the `region_prop` variable, the memory for which is allocated by calling the function `fit_config_get_regions`. Signed-off-by