Fix the memory leaks identified by KSPCommunityFixes.
Fix the memory leaks identified by KSPCommunityFixes.

mockingbirdnest/Principia,mockingbirdnest/Principia,mockingbirdnest/Principia,pleroy/Principia,pleroy/Principia,pleroy/Principia,mockingbirdnest/Principia,pleroy/Principia