vweb: fix vweb upload (#8392)

pull/8421/head
Louis Schmieder 2021-01-29 14:48:52 +01:00 committed by GitHub
parent f5242890b8
commit 4a6642b79e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 8 deletions

View File

@ -661,8 +661,6 @@ pub fn (mut ctx Context) parse_multipart_form(s string, b string) {
data: sb.str()
}
unsafe {
filename.free()
ct.free()
sb.free()
}
continue
@ -678,12 +676,6 @@ pub fn (mut ctx Context) parse_multipart_form(s string, b string) {
sb.free()
}
}
unsafe {
fields.free()
s.free()
b.free()
a.free()
}
}
fn (mut ctx Context) scan_static_directory(directory_path string, mount_path string) {