diff options
author | Navid Emamdoost <[email protected]> | 2019-10-04 13:58:43 -0500 |
---|---|---|
committer | Rob Herring <[email protected]> | 2019-10-23 14:42:44 -0500 |
commit | e13de8fe0d6a51341671bbe384826d527afe8d44 (patch) | |
tree | aa4c4d87587b0284841b945334bb17a7b22bb113 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
parent | 9af865d95bd730c1d1035acd5dd6df105da98d0c (diff) |
of: unittest: fix memory leak in unittest_data_add
In unittest_data_add, a copy buffer is created via kmemdup. This buffer
is leaked if of_fdt_unflatten_tree fails. The release for the
unittest_data buffer is added.
Fixes: b951f9dc7f25 ("Enabling OF selftest to run without machine's devicetree")
Signed-off-by: Navid Emamdoost <[email protected]>
Reviewed-by: Frank Rowand <[email protected]>
Signed-off-by: Rob Herring <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions