mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-13 00:40:11 +00:00
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:
parent
e67850971d
commit
561fc02ae5
1 changed files with 0 additions and 2 deletions
|
|
@ -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 !");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue