Fix memory leak in StringFeatures
CID 26248, 26247, 26246, 26241, 26239, 26236, 26235, 26236, 26234
Refactor CPack [ci skip]