mirror of
https://github.com/vlang/v.git
synced 2025-09-15 15:32:27 +03:00
vweb fixes
This commit is contained in:
parent
53307597b3
commit
a3b14e00a2
4 changed files with 38 additions and 22 deletions
|
@ -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')
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue