mirror of
https://github.com/vlang/v.git
synced 2025-09-16 07:52:32 +03:00
compiler: do not free memory on Windows for now
This commit is contained in:
parent
7f3cfea02b
commit
21f3b9eccc
1 changed files with 2 additions and 0 deletions
|
@ -1068,6 +1068,7 @@ fn (p mut Parser) close_scope() {
|
|||
break
|
||||
}
|
||||
// Clean up memory, only do this for V compiler for now
|
||||
$if !windows {
|
||||
if p.pref.building_v && v.is_alloc && !p.pref.is_test {
|
||||
mut free_fn := 'free'
|
||||
if v.typ.starts_with('array_') {
|
||||
|
@ -1092,6 +1093,7 @@ fn (p mut Parser) close_scope() {
|
|||
p.genln('$free_fn($v.name); // close_scope free')
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if p.cur_fn.defer_text.last() != '' {
|
||||
p.genln(p.cur_fn.defer_text.last())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue