`qtree_level_optimizer` would be optionally allocated based on
`n >= ctrl->quadtree_size` but then would only be freed if `USE_QT` was set.
`USE_QT` is always false (it will be removed in an upcoming commit), so this
clean up never runs. This seems latent; I suspect the branch that allocates
`qtree_level_optimizer` is unreachable because this function appears to have
been copy-pasted from one of the other variants in this file with little regard
to how much of it is dead code. But it still seems wise to fix this issue.
RETURN:
if (USE_QT) {
- oned_optimizer_delete(qtree_level_optimizer);
ctrl->max_qtree_level = max_qtree_level;
}
+ oned_optimizer_delete(qtree_level_optimizer);
free(xold);
if (A != A0) SparseMatrix_delete(A);
free(f);