linux/drivers/of
Frank Rowand 4c2a34f9f4 of: overlay: kmemleak in dup_and_fixup_symbol_prop()
commit 478ff649b1 upstream.

kmemleak reports several memory leaks from devicetree unittest.
This is the fix for problem 4 of 5.

target_path was not freed in the non-error path.

Fixes: e0a58f3e08 ("of: overlay: remove a dependency on device node full_name")
Reported-by: Erhard F. <erhard_f@mailbox.org>
Signed-off-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-23 10:36:23 +02:00
..
unittest-data
Kconfig
Makefile
address.c
base.c
device.c
dynamic.c
fdt.c
fdt_address.c
irq.c
kobj.c
of_mdio.c
of_net.c
of_numa.c
of_private.h
of_reserved_mem.c
overlay.c of: overlay: kmemleak in dup_and_fixup_symbol_prop() 2020-04-23 10:36:23 +02:00
pdt.c
platform.c
property.c
resolver.c
unittest.c of: unittest: kmemleak in of_unittest_overlay_high_level() 2020-04-23 10:36:23 +02:00