diff --git a/lib/smurff-cpp/Tests/tests.cpp b/lib/smurff-cpp/Tests/tests.cpp index d3f9435f7..ce1040d49 100644 --- a/lib/smurff-cpp/Tests/tests.cpp +++ b/lib/smurff-cpp/Tests/tests.cpp @@ -203,6 +203,8 @@ TEST_CASE("macauprior/make_dense_prior", "Making MacauPrior with MatrixConfig") tmp.triangularView() = prior->FtF_plus_precision; tmp.triangularView() -= Ftrue.transpose() * Ftrue; REQUIRE( tmp.norm() == Approx(0) ); + + delete prior; } TEST_CASE("inv_norm_cdf/inv_norm_cdf", "Inverse normal CDF") {