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

memory: clean up all arrays in the V compiler

This commit is contained in:
Alexander Medvednikov
2019-09-09 03:29:24 +03:00
parent 2f9caf49d3
commit 00687de43b
4 changed files with 32 additions and 6 deletions

View File

@ -377,11 +377,9 @@ pub fn (s string) index(p string) int {
j++
}
if j == p.len {
prefix.free()
return i - p.len + 1
}
}
prefix.free()
return -1
}