mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 19:44:35 +08:00
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:
@@ -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 */
|
||||
|
||||
|
Reference in New Issue
Block a user