remove memory leak on warnings when they are disabled
another small fix
Merge pull request #1272 from dwightguth/kem

remove memory leak on warnings when they are disabled