Skip to content

Commit 3108c27

Browse files
JianyuWang0623xiaoxiang781216
authored andcommitted
apps/nshlib: Save result and return ERROR if lib_get_tempbuffer() fails
Signed-off-by: wangjianyu3 <[email protected]>
1 parent f8e4afb commit 3108c27

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

nshlib/nsh_parse.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -616,6 +616,7 @@ static int nsh_execute(FAR struct nsh_vtbl_s *vtbl,
616616
{
617617
nsh_error(vtbl, g_fmtcmdoutofmemory, sh_cmd);
618618
ret = -errno;
619+
goto close_redir;
619620
}
620621

621622
sh_arg2[0] = '\0';

0 commit comments

Comments
 (0)