修改codecheck

Signed-off-by: hhhFun <fanghaojie@huawei.com>
This commit is contained in:
hhhFun 2024-09-03 11:18:08 +08:00
parent 4e6c0346aa
commit d64711ff51

View File

@ -563,6 +563,7 @@ static napi_value JSCipherRsa(napi_env env, napi_callback_info info)
rsaAsyncContext->ret = GetRsaInput(env, argv[0], rsaAsyncContext);
if (rsaAsyncContext->ret != ERROR_SUCCESS) {
DeleteRsaAsyncContext(env, rsaAsyncContext);
delete rsaAsyncContext;
CIPHER_LOG_E("Failed to get rsa input.");
return nullptr;
}
@ -610,6 +611,7 @@ static napi_value JSCipherAes(napi_env env, napi_callback_info info)
aesAsyncContext->ret = GetAesInput(env, argv[0], aesAsyncContext);
if (aesAsyncContext->ret != ERROR_SUCCESS) {
DeleteAesAsyncContext(env, aesAsyncContext);
delete aesAsyncContext;
CIPHER_LOG_E("Failed to get aes input.");
return nullptr;
}