NSH DD command: Use nsh_freefullpath() instead of free(). Actually, these are the so this does not fix bug. It is just needed for symmetry.
This commit is contained in:
parent
aa35ebb6b6
commit
652853c7d1
@ -357,16 +357,15 @@ errout_with_inf:
|
||||
errout_with_paths:
|
||||
if (infile)
|
||||
{
|
||||
free(infile);
|
||||
nsh_freefullpath(infile);
|
||||
}
|
||||
|
||||
if (outfile)
|
||||
{
|
||||
free(outfile);
|
||||
nsh_freefullpath(outfile);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
#endif /* CONFIG_NFILE_DESCRIPTORS && !CONFIG_NSH_DISABLE_DD */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user