From 4a6642b79ec1a0e7ad502bf00c80e54f5704de68 Mon Sep 17 00:00:00 2001 From: Louis Schmieder Date: Fri, 29 Jan 2021 14:48:52 +0100 Subject: [PATCH] vweb: fix vweb upload (#8392) --- vlib/vweb/vweb.v | 8 -------- 1 file changed, 8 deletions(-) diff --git a/vlib/vweb/vweb.v b/vlib/vweb/vweb.v index f2b7560b2b..e84dcd1b56 100644 --- a/vlib/vweb/vweb.v +++ b/vlib/vweb/vweb.v @@ -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) {