aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorNam Cao <[email protected]>2022-10-25 11:12:26 +0200
committerGreg Kroah-Hartman <[email protected]>2022-10-31 09:08:30 +0100
commit336ccc31cda111c830332d4b56def49c9c1d48e6 (patch)
tree6796b56a9d70106f1272d1614cf131c6c171bd9d /tools/perf/scripts/python
parent242443430dd8ef932a56cf483080a46f2948dd65 (diff)
staging: rtl8712: fix potential memory leak
In r8712_init_drv_sw(), whenever any function call returns error, it is returned immediately without properly cleaning up the other successfully executed functions. This can cause memory leak. Instead of return immediately, free all the allocated buffers first. Tested-by: Philipp Hortmann <[email protected]> Signed-off-by: Nam Cao <[email protected]> Link: https://lore.kernel.org/r/0a3414b12031f6cdcba81a8725e91eb9567ff34f.1666688642.git.namcaov@gmail.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions