Fix memory issue with log_determiant_ldlt_test.cpp