aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorNishka Dasgupta <[email protected]>2019-08-18 10:39:01 +0100
committerGreg Kroah-Hartman <[email protected]>2019-08-18 12:56:10 +0200
commit04eb94d526423ff082efce61f4f26b0369d0bfdd (patch)
treecdc3dfda4742da1ba63c06d8ba956f885bd6ce74 /tools/perf/scripts/python/export-to-postgresql.py
parent672a749b4df68909e4a9dbb4ff7de3c795affd35 (diff)
slimbus: qcom-ngd-ctrl: Add of_node_put() before return
Each iteration of for_each_available_child_of_node puts the previous node, but in the case of a return from the middle of the loop, there is no put, thus causing a memory leak. Hence add an of_node_put before the return in two places. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta <[email protected]> Reviewed-by: Bjorn Andersson <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions