intel / intel-cmt-cat

User space software for Intel(R) Resource Director Technology
http://www.intel.com/content/www/us/en/architecture-and-technology/resource-director-technology.html
Other
685 stars 180 forks source link

Fix memory leaks on error return path and clean up to redundant assignments #231

Closed ColinIanKing closed 1 year ago

ColinIanKing commented 1 year ago

Description

Clean up errors found with static analysis with cppcheck. There are some assignments that are redundant and can be removed. Also there are 4 memory leaks in inlined functions in unit-test/pqos/caps_gen.h that are fixed.

Affected parts

Motivation and Context

Cleans up minor issues found using static analysis

How Has This Been Tested?

Build tested and re-tested against static analysis tools

Types of changes

Checklist:

aleksinx commented 1 year ago

Thank you for your contribution, the changes have been merged into master