Re: [PATCH] rtc: sun6i: fix memory leak

2017-09-27 Thread Alexandre Belloni
Hi, On 17/09/2017 at 13:43:10 +0100, Sudip Mukherjee wrote: > If 'clk_data' is not allocated we returned but we failed to free 'rtc'. > > Signed-off-by: Sudip Mukherjee > --- > drivers/rtc/rtc-sun6i.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/rtc/rtc-s

[PATCH] rtc: sun6i: fix memory leak

2017-09-17 Thread Sudip Mukherjee
If 'clk_data' is not allocated we returned but we failed to free 'rtc'. Signed-off-by: Sudip Mukherjee --- drivers/rtc/rtc-sun6i.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/rtc/rtc-sun6i.c b/drivers/rtc/rtc-sun6i.c index 3d2216c..5bc28ee 100644 --- a/drivers/