aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorWenwen Wang <[email protected]>2019-08-12 00:59:21 -0500
committerJeff Kirsher <[email protected]>2019-11-01 13:20:33 -0700
commit8472ba62154058b64ebb83d5f57259a352d28697 (patch)
tree1658da565edf5b754cecc8d52bb7337bae5d4099 /tools/perf/util/trace-event-scripting.c
parent2c19e395e061a1c1442e0623ce5ec88ecc6c5a9b (diff)
e1000: fix memory leaks
In e1000_set_ringparam(), 'tx_old' and 'rx_old' are not deallocated if e1000_up() fails, leading to memory leaks. Refactor the code to fix this issue. Signed-off-by: Wenwen Wang <[email protected]> Tested-by: Aaron Brown <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions