Fixed memory leak in apply_basis_axioms
Merged