Fix leaking of qtree results array.