powerpc/pseries: fix a potential memory leak
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 1 Oct 2015 09:46:07 +0000 (12:46 +0300)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 5 Oct 2015 10:11:25 +0000 (21:11 +1100)
commitdc85aaed64804205c476d06cebe4c94f66fd8a20
treef10c338a4e927857280b22fcc1138ef5aac54cf5
parent948ad1acaf456b7213731cd9eb58654930335070
powerpc/pseries: fix a potential memory leak

In case we have a full node name like /foo/bar and /foo is not found the
parent_path left unfreed. So, free a memory before return to a caller.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/pseries/of_helpers.c