diff --git a/kernel/base/misc/task_shellcmd.c b/kernel/base/misc/task_shellcmd.c index 4b78af58e11e65e30fe0580c27bd7a10ba26c4cb..81f2ef02d96c2a116f61dec880208f56054cac79 100644 --- a/kernel/base/misc/task_shellcmd.c +++ b/kernel/base/misc/task_shellcmd.c @@ -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; }