From fe2bdf5edd6d44f60459ccbc85e572a55e72e180 Mon Sep 17 00:00:00 2001 From: cquil11 Date: Fri, 12 Apr 2024 16:56:51 -0500 Subject: [PATCH] add return and free to mcl demo --- experimental/benchmark/mcl_demo.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/experimental/benchmark/mcl_demo.c b/experimental/benchmark/mcl_demo.c index 106c53f081..6660c40ae0 100644 --- a/experimental/benchmark/mcl_demo.c +++ b/experimental/benchmark/mcl_demo.c @@ -83,7 +83,7 @@ int main(int argc, char **argv) GRB_TRY(GrB_Scalar_setElement_BOOL(TRUE_BOOL, (bool)1)); //-------------------------------------------------------------------------- - // run mcl algorithm + // run MCL algorithm //-------------------------------------------------------------------------- // compute check result @@ -125,4 +125,8 @@ int main(int argc, char **argv) GRB_TRY(GxB_Vector_sort(vpc_sorted, NULL, GrB_GT_FP64, vpc, NULL)); GxB_print(vpc_sorted, GxB_SHORT); + + LG_FREE_ALL; + LAGRAPH_TRY(LAGraph_Finalize(msg)); + return (GrB_SUCCESS); }