diff options
author | Gustavo A. R. Silva <[email protected]> | 2019-04-08 11:12:40 -0500 |
---|---|---|
committer | Len Brown <[email protected]> | 2019-08-31 14:48:34 -0400 |
commit | 605736c6929d541c78a85dffae4d33a23b6b2149 (patch) | |
tree | 17983d66f5769f1d588c772a9ad6e8ea02b8042e /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 15423b958f33132152e209e98df0dedc7a78f22c (diff) |
tools/power turbostat: fix file descriptor leaks
Fix file descriptor leaks by closing fp before return.
Addresses-Coverity-ID: 1444591 ("Resource leak")
Addresses-Coverity-ID: 1444592 ("Resource leak")
Fixes: 5ea7647b333f ("tools/power turbostat: Warn on bad ACPI LPIT data")
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Reviewed-by: Prarit Bhargava <[email protected]>
Signed-off-by: Len Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions