cpupower: fix resource leaks and unit labels
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 4 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | cpupower: fix swapped power/energy unit labelstools/ | +2 | 1 reply | |
| 2/3 | cpupower: Fix memory leaks on early exit pathstools/ | +16 | 2 replies | |
| 3/3 | cpupower: fix memory leak on execlp failuretools/ | +3 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 0/3] cpupower: fix resource leaks and unit labels
This series addresses multiple resource management issues in cpupower utilities:
- Patch 1 corrects swapped unit descriptions in powercap output where power_uw and energy_uj labels were interchanged.
- Patch 2 centralizes cleanup logic to ensure bitmask resources are freed on all exit paths in the main program.
- Patch 3 fixes a memory leak in print_man_page() when execlp fails.
Kaushlendra Kumar (3):
cpupower: fix swapped power/energy unit labels
cpupower: Fix memory leaks on early exit paths
cpupower: fix memory leak on execlp failure
tools/power/cpupower/utils/cpupower.c | 25 ++++++++++++++++------ tools/power/cpupower/utils/powercap-info.c | 4 ++-- 2 files changed, 21 insertions(+), 8 deletions(-)
Signature · 1 line
2.34.1