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

Merge pull request !4574 from 吴岳川/memchk
This commit is contained in:
opengauss_bot
2023-12-07 02:36:19 +00:00
committed by Gitee

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;
}