Skip to content

Commit 170c10a

Browse files
maxflow: freed FlowEdge type too early when flow matrix is returned
1 parent c23df3a commit 170c10a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

experimental/algorithm/LAGr_MaxFlow.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ static GrB_Info LG_global_relabel
131131

132132
#define LG_FREE_WORK_EXCEPT_R \
133133
{ \
134-
GrB_free(&FlowEdge); \
135134
GrB_free(&CompareTuple); \
136135
GrB_free(&ResultTuple); \
137136
GrB_free(&e); \
@@ -181,6 +180,7 @@ static GrB_Info LG_global_relabel
181180
#define LG_FREE_WORK \
182181
{ \
183182
LG_FREE_WORK_EXCEPT_R \
183+
GrB_free(&FlowEdge); \
184184
GrB_free(&ExtractMatrixFlow); \
185185
GrB_free(&R); \
186186
}

0 commit comments

Comments
 (0)