compiler: temporary memory fix on windows

pull/1974/head
joe-conigliaro 2019-09-14 20:09:25 +10:00 committed by Alexander Medvednikov
parent 81bf67ba4f
commit b96cbe2177
1 changed files with 1 additions and 1 deletions

View File

@ -1068,7 +1068,7 @@ fn (p mut Parser) close_scope() {
break break
} }
// Clean up memory, only do this for V compiler for now // Clean up memory, only do this for V compiler for now
$if !windows { if p.os != .windows {
if p.pref.building_v && v.is_alloc && !p.pref.is_test { if p.pref.building_v && v.is_alloc && !p.pref.is_test {
mut free_fn := 'free' mut free_fn := 'free'
if v.typ.starts_with('array_') { if v.typ.starts_with('array_') {