Re: [PATCH 2/3] of: Use scope based kfree() cleanups

From: Jonathan Cameron
Date: Sat Apr 06 2024 - 12:53:06 EST


On Thu, 04 Apr 2024 09:15:11 -0500
Rob Herring <robh@xxxxxxxxxx> wrote:

> Use the relatively new scope based kfree() cleanup to simplify error
> handling. Doing so reduces the chances of memory leaks and simplifies
> error paths by avoiding the need for goto statements.
>
> Signed-off-by: Rob Herring <robh@xxxxxxxxxx>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>