Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nshlib/nsh_console.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
* See struct serialsave_s in nsh_console.c
*/

#define SAVE_SIZE (2 * sizeof(int))
#define SAVE_SIZE (3 * sizeof(int))

/* Are we using the NuttX console for I/O? Or some other character device? */

Expand Down
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