diff options
author | Nishka Dasgupta <nishkadg.linux@gmail.com> | 2019-07-09 22:40:16 +0530 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2019-07-25 14:21:44 +0200 |
commit | c436f68beeb20f2f92937677db1d9069b0dd2a3d (patch) | |
tree | e3f28c61259c14331eb2f152a2a7261e9fc01746 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 4902e87faf26067d661e2a9285ce93457884da6d (diff) |
mtd: rawnand: oxnas: Add of_node_put()
Each iteration of for_each_child_of_node puts the previous node, but in
the case of a goto from the middle of the loop, there is no put, thus
causing a memory leak. Hence add an of_node_put under a new goto to put
the node at a loop exit.
Issue found with Coccinelle.
Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions