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.
diff --git a/nshlib/nsh_ddcmd.c b/nshlib/nsh_ddcmd.c
index 42bb71e..2b976b8 100644
--- a/nshlib/nsh_ddcmd.c
+++ b/nshlib/nsh_ddcmd.c
@@ -357,16 +357,15 @@
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 */
-