解决_cipher没有正确释放的问题

This commit is contained in:
wuyuechuan
2023-12-06 10:07:34 +08:00
parent 9e5a0006fb
commit b5452c8dce

View File

@ -532,6 +532,7 @@ KmUnStr kms_mk_encrypt(KeyMgr *kmgr, KeyInfo info, KmUnStr plain)
cipher.val = _cipher->ustr_val;
cipher.len = _cipher->ustr_len;
km_safe_free(_cipher);
return cipher;
}