Skip to content

Commit

Permalink
nshlib: Fix a typo error of redirect
Browse files Browse the repository at this point in the history
Signed-off-by: wangjianyu3 <[email protected]>
  • Loading branch information
JianyuWang0623 authored and xiaoxiang781216 committed Oct 13, 2024
1 parent 0f5a786 commit 2bfe2c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nshlib/nsh_parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -2855,10 +2855,12 @@ static int nsh_parse_command(FAR struct nsh_vtbl_s *vtbl, FAR char *cmdline)
vtbl->np.np_redir_out = redirect_out_save;
}

/* Free the redirected input file path */

if (redirfile_in)
{
nsh_freefullpath(redirfile_in);
vtbl->np.np_redir_out = redirect_in_save;
vtbl->np.np_redir_in = redirect_in_save;
}

dynlist_free:
Expand Down

0 comments on commit 2bfe2c2

Please sign in to comment.