summaryrefslogtreecommitdiff
path: root/networking/ftpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/ftpd.c')
-rw-r--r--networking/ftpd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/networking/ftpd.c b/networking/ftpd.c
index 4ba96cf..33db964 100644
--- a/networking/ftpd.c
+++ b/networking/ftpd.c
@@ -927,6 +927,7 @@ handle_upload_common(int is_append, int is_unique)
|| fstat(local_file_fd, &statbuf) != 0
|| !S_ISREG(statbuf.st_mode)
) {
+ free(tempname);
WRITE_ERR(FTP_UPLOADFAIL);
if (local_file_fd >= 0)
goto close_local_and_bail;