diff options
-rw-r--r-- | networking/ftpd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/networking/ftpd.c b/networking/ftpd.c index 4ba96cfc2..33db964fa 100644 --- a/networking/ftpd.c +++ b/networking/ftpd.c | |||
@@ -927,6 +927,7 @@ handle_upload_common(int is_append, int is_unique) | |||
927 | || fstat(local_file_fd, &statbuf) != 0 | 927 | || fstat(local_file_fd, &statbuf) != 0 |
928 | || !S_ISREG(statbuf.st_mode) | 928 | || !S_ISREG(statbuf.st_mode) |
929 | ) { | 929 | ) { |
930 | free(tempname); | ||
930 | WRITE_ERR(FTP_UPLOADFAIL); | 931 | WRITE_ERR(FTP_UPLOADFAIL); |
931 | if (local_file_fd >= 0) | 932 | if (local_file_fd >= 0) |
932 | goto close_local_and_bail; | 933 | goto close_local_and_bail; |