mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
vweb: fix a leak
This commit is contained in:
parent
b04e509830
commit
0138f46797
4 changed files with 27 additions and 4 deletions
|
@ -115,6 +115,7 @@ pub fn (mut b Builder) str() string {
|
|||
b.buf << `\0`
|
||||
s := string(b.buf,b.len)
|
||||
bis := b.initial_size
|
||||
//free(b.buf.data)
|
||||
b.buf = []byte{cap: bis}
|
||||
b.len = 0
|
||||
return s
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue