From e1db338a5187c008819932a4166f3aa27958c48e Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Wed, 11 Jul 2012 00:26:24 +0200 Subject: ftpd: free allocated string on error path Signed-off-by: Denys Vlasenko --- networking/ftpd.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit v1.1