回复: [RFC PATCH 3/4] regulator: rts490x: Add driver for on-die regulators
From: 周寅
Date: Sun Sep 20 2026 - 23:47:47 EST
On Sun, Sep 20, 2026, Krzysztof Kozlowski wrote:
> You leak OF nodes.
Thanks for the review.
Both regulators and node are declared with __free(device_node), so the
references returned by of_get_available_child_by_name() should be
dropped on scope exit, including the continue and error paths.
Could you clarify which reference is leaking?
Best regards,
Zain