diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a55a20ac12..d52a8da2d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -326,6 +326,15 @@ jobs: ../v -autofree . cd .. +# - name: Test c2v +# run: | +# git clone --depth 1 https://github.com/vlang/c2v +# cd c2v && ../v -o c2v . +# ../v . +# ../v run tests/run_tests.vsh +# ../v -experimental -w c2v_test.v +# cd .. + - name: Build V UI examples run: | git clone --depth 1 https://github.com/vlang/ui diff --git a/vlib/vweb/vweb.v b/vlib/vweb/vweb.v index a3b739dc7c..a653cb25d9 100644 --- a/vlib/vweb/vweb.v +++ b/vlib/vweb/vweb.v @@ -297,6 +297,7 @@ interface DbInterface { } // run_app +[manualfree] pub fn run(global_app &T, port int) { // x := global_app.clone() // mut global_app := &T{} @@ -348,6 +349,9 @@ fn handle_conn(mut conn net.TcpConn, mut app T) { conn.set_write_timeout(30 * time.second) defer { conn.close() or {} + unsafe { + free(app) + } } mut reader := io.new_buffered_reader(reader: conn) defer {