Correct last change to NSH file

This commit is contained in:
Gregory Nutt 2015-08-30 18:57:32 -06:00
parent 4555282571
commit 69f578d442

View File

@ -1349,7 +1349,7 @@ int cmd_mv(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
if (!newpath)
{
ret = ERROR;
goto errout_with_free;
goto errout_with_oldpath;
}
/* Perform the mount */
@ -1361,9 +1361,11 @@ int cmd_mv(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv)
}
/* Free the file paths */
errout_with_free:
nsh_freefullpath(oldpath);
nsh_freefullpath(newpath);
errout_with_oldpath:
nsh_freefullpath(oldpath);
return ret;
}
#endif