_testgo: goroutine

This commit is contained in:
xushiwei
2024-06-01 16:04:35 +08:00
parent e5802853c0
commit 51f3ac2376
5 changed files with 40 additions and 37 deletions

View File

@@ -106,7 +106,7 @@ func (p Package) routine(t Type, n int) Expr {
args[i] = b.getField(data, i+1)
}
b.Call(fn, args...)
b.free(data)
b.free(param)
b.Return(prog.Null(prog.VoidPtr()))
return routine.Expr
}