netutils/ftpd/ftpd.c: Fix an error introduced in PR10. In error clean-up, it was trying to free memory on an error where we failed allocated memory. Not good.

This commit is contained in:
Gregory Nutt 2020-01-11 19:40:57 -06:00 committed by Ouss4
parent e67850971d
commit 561fc02ae5

View File

@ -1617,8 +1617,6 @@ static int ftpd_changedir(FAR struct ftpd_session_s *session,
(FAR char **)(&workpath));
if (ret < 0)
{
free(workpath);
free(abspath);
ftpd_response(session->cmd.sd, session->txtimeout,
g_respfmt1, 550, ' ',
"Can not change directory !");