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 <[email protected]>
---
  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: [email protected]
Geschäftsführer : Stefano Babic

Reply via email to