!449 消除napi_query_syscap.cpp文件安全告警

Merge pull request !449 from tongkai0808fh/master
This commit is contained in:
openharmony_ci
2024-06-04 06:11:58 +00:00
committed by Gitee
+1
View File
@@ -223,6 +223,7 @@ napi_value QuerySystemCapability(napi_env env, napi_callback_info info)
},
(void*)asyncContext, &asyncContext->work);
napi_queue_async_work(env, asyncContext->work);
delete asyncContext;
return result;
}