vweb: fix vweb upload (#8392)
parent
f5242890b8
commit
4a6642b79e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue