clk: gpio: fix memory leak
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>
Wed, 23 Dec 2015 06:33:59 +0000 (12:03 +0530)
committerMichael Turquette <mturquette@baylibre.com>
Fri, 1 Jan 2016 05:31:58 +0000 (21:31 -0800)
commitc76eb11c8f0bae27aa4db9a18031a497ba6e2636
tree55a753756227e5cff5d721328e8318e671839fcb
parent9e256c722fa4ac42bef9eb6e43bb7fe3436cca04
clk: gpio: fix memory leak

If we fail to allocate parent_name then we are returning but we missed
freeing data which has already been allocated.

Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
drivers/clk/clk-gpio.c