cherry pick b58c6d4
from https://gitee.com/hw_llm/kernel_liteos_a/pulls/1221
Description: OsShellCmdTskInfoGet 内存泄露漏洞修复 IssueNo: https://gitee.com/openharmony/kernel_liteos_a/issues/IAM34B?from=project-issue Feature Or Bugfix: Bugfix Binary Source: No Signed-off-by: hw_llm <liu.limin@huawei.com>
This commit is contained in:
parent
d9716f2b38
commit
38fca35ff2
|
@ -379,6 +379,7 @@ LITE_OS_SEC_TEXT_MINOR UINT32 OsShellCmdTskInfoGet(UINT32 processID, VOID *seqBu
|
|||
(VOID)memset_s(threadInfo, sizeof(ProcessThreadInfo), 0, sizeof(ProcessThreadInfo));
|
||||
|
||||
if (OsGetProcessThreadInfo(processID, threadInfo) != LOS_OK) {
|
||||
(VOID)LOS_MemFree(m_aucSysMem1, threadInfo);
|
||||
return LOS_NOK;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue