Skip to content

Commit

Permalink
netutils/ftpd/ftpd.c: Fix an error introduced in PR10. In error clean…
Browse files Browse the repository at this point in the history
…-up, it was trying to free memory on an error where we failed allocated memory. Not good.
  • Loading branch information
gregory-nutt authored and Ouss4 committed Jan 12, 2020
1 parent e678509 commit 561fc02
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions netutils/ftpd/ftpd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 !");
Expand Down

0 comments on commit 561fc02

Please sign in to comment.