1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

strings.builder: fix a memory leak

This commit is contained in:
Alexander Medvednikov
2020-05-06 11:11:57 +00:00
parent e87289f24d
commit 25db5e96a3
2 changed files with 6 additions and 3 deletions

View File

@ -106,7 +106,7 @@ pub fn (b mut Builder) free() {
}
// QTODO checker bug
s := b.initial_size
b.buf = []byte{cap: s}
//b.buf = []byte{cap: s}
b.len = 0
b.str_calls = 0
}