diff --git a/components/shell/src/cmds/vfs_shellcmd.c b/components/shell/src/cmds/vfs_shellcmd.c index f5c065ba..7b6b4a75 100755 --- a/components/shell/src/cmds/vfs_shellcmd.c +++ b/components/shell/src/cmds/vfs_shellcmd.c @@ -278,6 +278,7 @@ INT32 OsShellCmdCat(INT32 argc, const CHAR **argv) if (fd == -1) { ret = -1; + free(fullpath); return ret; }