From cd8237fb5ebf242a45cea40ea309d6272be28830 Mon Sep 17 00:00:00 2001 From: yinjiaming Date: Thu, 12 Jan 2023 10:47:44 +0800 Subject: [PATCH] =?UTF-8?q?fixed=209a4e967=20from=20https://gitee.com/hgbv?= =?UTF-8?q?eiu743/kernel=5Fliteos=5Fm/pulls/1009=20fix:=E4=BF=AE=E5=A4=8DO?= =?UTF-8?q?sLs=E5=87=BD=E6=95=B0=E5=86=85=E5=AD=98=E6=B3=84=E6=BC=8F?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20=E5=BD=93d=20=3D=20NULL=E6=97=B6=EF=BC=8Cp?= =?UTF-8?q?ath=E6=B2=A1=E6=9C=89=E9=87=8A=E6=94=BE=EF=BC=8C=E7=8E=B0?= =?UTF-8?q?=E9=87=8A=E6=94=BEpath=E6=89=80=E6=8C=87=E5=90=91=E7=9A=84?= =?UTF-8?q?=E5=86=85=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit close #I6A07U Signed-off-by: yinjiaming Change-Id: Iee9fd8d2171c6fdcf353a48e7af385bbd1660520 --- components/shell/src/cmds/vfs_shellcmd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/components/shell/src/cmds/vfs_shellcmd.c b/components/shell/src/cmds/vfs_shellcmd.c index 801f6e99..e7f68345 100644 --- a/components/shell/src/cmds/vfs_shellcmd.c +++ b/components/shell/src/cmds/vfs_shellcmd.c @@ -181,6 +181,7 @@ VOID OsLs(const CHAR *pathname) d = opendir(path); if (d == NULL) { PRINT_ERR("No such directory = %s\n", path); + free(path); } else { PRINTK("Directory %s:\n", path); do {