Tongsuo-Project / Tongsuo

铜锁/Tongsuo is a Modern Cryptographic Primitives and Protocols Library
https://www.tongsuo.net
Apache License 2.0
1.15k stars 184 forks source link

Fix memory leak in TSAPI_ImportSM2Key() #647

Closed dongbeiouba closed 2 months ago

dongbeiouba commented 2 months ago

privkey and pubkey should be freed at the end of TSAPI_ImportSM2Key().

Checklist
CLAassistant commented 2 months ago

CLA assistant check
All committers have signed the CLA.

InfoHunter commented 2 months ago

CLA is going to be signed again.