Re: [PATCH] clk: mvebu/clk-cpu.c: fix memory leakage

2013-01-15 Thread Cong Ding
On Tue, Jan 15, 2013 at 03:13:00PM +0100, Gregory CLEMENT wrote: > Dear Cong Ding, > > On 01/14/2013 06:18 PM, Cong Ding wrote: > > the variable cpuclk and clk_name should be properly freed. > > > > Thanks for reporting this memory leak and for your patch but I think > we could do even better, s

Re: [PATCH] clk: mvebu/clk-cpu.c: fix memory leakage

2013-01-15 Thread Gregory CLEMENT
Dear Cong Ding, On 01/14/2013 06:18 PM, Cong Ding wrote: > the variable cpuclk and clk_name should be properly freed. > Thanks for reporting this memory leak and for your patch but I think we could do even better, see below: > Signed-off-by: Cong Ding > --- > drivers/clk/mvebu/clk-cpu.c |

[PATCH] clk: mvebu/clk-cpu.c: fix memory leakage

2013-01-14 Thread Cong Ding
the variable cpuclk and clk_name should be properly freed. Signed-off-by: Cong Ding --- drivers/clk/mvebu/clk-cpu.c |9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/clk/mvebu/clk-cpu.c b/drivers/clk/mvebu/clk-cpu.c index ff004578..1a0d84f 100644 --- a/drive