[PATCH 1/3] fs: ubifs: Ensure buf is freed before return
    Heiko Schocher 
    hs at nabladev.com
       
    Thu Oct  9 06:14:18 CEST 2025
    
    
  
Hello Andrew,
On 03.10.25 12:42, Andrew Goodbody wrote:
> Returning directly after buf has been allocated will result in a memory
> leak. Instead set the error code and goto the common unwind code to
> ensure that buf will be freed before returning.
> 
> This issue was found by Smatch.
> 
> Signed-off-by: Andrew Goodbody <andrew.goodbody at linaro.org>
> ---
>   fs/ubifs/lprops.c | 6 ++++--
>   1 file changed, 4 insertions(+), 2 deletions(-)
Applied to u-boot-ubi
Thanks!
bye,
Heiko
-- 
Nabla Software Engineering
HRB 40522 Augsburg
Phone: +49 821 45592596
E-Mail: office at nabladev.com
Geschäftsführer : Stefano Babic
    
    
More information about the U-Boot
mailing list