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
[ ] library
[ ] pqos utility
[ ] rdtset utility
[ ] App QoS
[x] other: unit-test and examples
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
[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
Checklist:
[x ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
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: