You need to sign in or sign up before continuing.
未验证 提交 efb375a4 编写于 作者: O openharmony_ci 提交者: Gitee

!768 修改close space错误

Merge pull request !768 from Mupceet/parambase
......@@ -3,10 +3,7 @@
"name" : "services:deviceinfoservice",
"cmds" : [
"chown shell system /data/init_agent/begetctrl.log",
"chown shell system /data/init_agent/device_infokits.log",
"chmod 0666 /data/init_agent/begetctrl.log",
"chmod 0666 /data/init_agent/param.log",
"chmod 0666 /data/init_agent/device_infokits.log"
"chmod 0666 /data/init_agent/begetctrl.log"
]
}
],
......
......@@ -163,7 +163,10 @@ int InitParamWorkSpace(int onlyRead)
void CloseParamWorkSpace(void)
{
PARAM_LOGI("CloseParamWorkSpace");
PARAM_LOGI("CloseParamWorkSpace %p", &g_paramWorkSpace);
if (!PARAM_TEST_FLAG(g_paramWorkSpace.flags, WORKSPACE_FLAGS_INIT)) {
return;
}
WORKSPACE_RW_LOCK(g_paramWorkSpace);
if (g_paramWorkSpace.workSpaceHashHandle != NULL) {
HashMapDestory(g_paramWorkSpace.workSpaceHashHandle);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册