Skip to content

Commit 457c110

Browse files
committed
предостережение
1 parent 9c06e23 commit 457c110

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

‎experimental/algorithm/LAGraph_CFL_AllPaths.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,7 @@ static void free_AllPaths_matrix(GrB_Matrix* ptr_output)
348348
}
349349

350350
// Free outputs and all_paths_ptr_t after you have finished working with the output matrices from LAGraph_CFL_AllPaths.
351+
// do outputs = NULL, all_paths_ptr_t = NULL after LAGraph_CFL_AllPaths_free_outputs
351352
GrB_Info LAGraph_CFL_AllPaths_free_outputs(GrB_Matrix* outputs, int64_t nonterms_count, GrB_Type* all_paths_ptr_t)
352353
{
353354
#if GxB_IMPLEMENTATION < GxB_VERSION(9, 4, 5)
@@ -362,7 +363,6 @@ GrB_Info LAGraph_CFL_AllPaths_free_outputs(GrB_Matrix* outputs, int64_t nonterms
362363
}
363364
free(outputs);
364365
}
365-
outputs = NULL;
366366
GrB_free(all_paths_ptr_t);
367367
return GrB_SUCCESS;
368368
#endif

‎include/LAGraphX.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,6 +1182,7 @@ GrB_Info LAGraph_CFL_AllPaths(
11821182
);
11831183

11841184
// Free outputs and all_paths_ptr_t after you have finished working with the output matrices from LAGraph_CFL_AllPaths.
1185+
// do outputs = NULL, all_paths_ptr_t = NULL after LAGraph_CFL_AllPaths_free_outputs
11851186
GrB_Info LAGraph_CFL_AllPaths_free_outputs(
11861187
GrB_Matrix* outputs,
11871188
int64_t nonterms_count,

0 commit comments

Comments
 (0)