Skip to content

Commit 7f86c4d

Browse files
committed
Fix allocation
1 parent 27857ba commit 7f86c4d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/balanced_tree.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,8 +242,8 @@ function Base.empty!(t::BalancedTree23)
242242
initializeTree!(t.tree)
243243
t.depth = 1
244244
t.rootloc = 1
245-
t.freetreeinds = Vector{Int}()
246-
t.freedatainds = Vector{Int}()
245+
empty!(t.freetreeinds)
246+
empty!(t.freedatainds)
247247
empty!(t.useddatacells)
248248
push!(t.useddatacells, 1, 2)
249249
return nothing

0 commit comments

Comments
 (0)