1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vweb: fix vweb upload (#8392)

This commit is contained in:
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

View File

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