未验证 提交 74545390 编写于 作者: O openharmony_ci 提交者: Gitee

!1691 Fix memory leak issue in WatchTrigger.

Merge pull request !1691 from felix.dp/param-mem-leak
......@@ -212,6 +212,10 @@ static void DelWatchTrigger_(const TriggerWorkSpace *workSpace, TriggerNode *tri
}
PARAM_LOGV("DelWatchTrigger_ %s count %d", GetTriggerName(trigger), triggerHead->triggerCount);
triggerHead->triggerCount--;
if (trigger->condition != NULL) {
free(trigger->condition);
trigger->condition = NULL;
}
free(trigger);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册