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:
Gregory Nutt 2015-12-02 10:54:55 -06:00
parent aa35ebb6b6
commit 652853c7d1

View File

@ -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 */