mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vweb fixes
This commit is contained in:
@ -502,7 +502,9 @@ pub fn (v mut V) generate_main() {
|
||||
else if v.table.main_exists() {
|
||||
v.gen_main_start(true)
|
||||
cgen.genln(' main__main();')
|
||||
cgen.genln('free(g_str_buf);')
|
||||
if !v.pref.is_bare {
|
||||
cgen.genln('free(g_str_buf);')
|
||||
}
|
||||
v.gen_main_end('return 0')
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user