diff options
| author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-07-11 00:26:24 +0200 |
|---|---|---|
| committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-07-11 00:26:24 +0200 |
| commit | e1db338a5187c008819932a4166f3aa27958c48e (patch) | |
| tree | fc75257ff438c5e753737f10f8eedee50f1a860c /networking | |
| parent | 3bb858765e0524efdf2a05c8669ddbfde522d634 (diff) | |
| download | busybox-e1db338a5187c008819932a4166f3aa27958c48e.tar.gz | |
ftpd: free allocated string on error path
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking')
| -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) || 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; |
