Skip to content

Commit

Permalink
add return and free to mcl demo
Browse files Browse the repository at this point in the history
  • Loading branch information
cquil11 committed Apr 12, 2024
1 parent bd5422f commit fe2bdf5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion experimental/benchmark/mcl_demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
}

0 comments on commit fe2bdf5

Please sign in to comment.