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:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user