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

prealloc: skip frees for now

This commit is contained in:
Alexander Medvednikov
2020-07-11 13:22:16 +02:00
parent fae601fe39
commit ab3c1f2a08
4 changed files with 30 additions and 5 deletions

View File

@ -438,6 +438,9 @@ pub fn (a array) reverse() array {
// pub fn (a []int) free() {
[unsafe_fn]
pub fn (a &array) free() {
$if prealloc {
return
}
// if a.is_slice {
// return
// }