Re: [PATCH] common: Fix memory leak and incorrect comparison

2025-02-10 Thread Tom Rini
On Thu, Feb 06, 2025 at 04:48:09PM +0300, Maks Mishin wrote: > Changing the order of actions: the input argument is checked before > memory is allocated. > > The input argument `n` is of type `size_t` and cannot take > negative values, so the comparison has been fixed. > > Signed-off-by: Maks

[PATCH] common: Fix memory leak and incorrect comparison

2025-02-06 Thread Maks Mishin
Changing the order of actions: the input argument is checked before memory is allocated. The input argument `n` is of type `size_t` and cannot take negative values, so the comparison has been fixed. Signed-off-by: Maks Mishin --- common/dlmalloc.c | 4 ++-- 1 file changed, 2 insertions(+), 2