aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorNam Cao <[email protected]>2022-09-09 16:13:39 +0200
committerGreg Kroah-Hartman <[email protected]>2022-09-11 13:57:11 +0200
commitc8ff91535880d41b49699b3829fb6151942de29e (patch)
treee90e392cd19614c30b2a7f8e33586f95c0a7fcf2 /tools/perf/scripts/python/event_analyzing_sample.py
parentdfa71c493fa12a5099fae687b767108360a93b3e (diff)
staging: vt6655: fix potential memory leak
In function device_init_td0_ring, memory is allocated for member td_info of priv->apTD0Rings[i], with i increasing from 0. In case of allocation failure, the memory is freed in reversed order, with i decreasing to 0. However, the case i=0 is left out and thus memory is leaked. Modify the memory freeing loop to include the case i=0. Tested-by: Philipp Hortmann <[email protected]> Signed-off-by: Nam Cao <[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/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions