Skip to content

Commit ccb2ea7

Browse files
committed
fix memory leak
1 parent b20f305 commit ccb2ea7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

experimental/algorithm/LAGraph_RPQMatrix.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -294,12 +294,6 @@ static GrB_Info LAGraph_RPQMatrixConcat(RPQMatrixPlan *plan, char *msg)
294294
GRB_TRY(GrB_mxm(res, GrB_NULL, GrB_NULL,
295295
sr, lhs_mat, rhs_mat, GrB_DESC_R)) ;
296296
plan->res_mat = res ;
297-
298-
GrB_Vector ins ;
299-
GrB_Vector_new(&ins, GrB_BOOL, dimension) ;
300-
GrB_Vector outs ;
301-
GrB_Vector_new(&outs, GrB_BOOL, dimension) ;
302-
303297
return (GrB_SUCCESS) ;
304298
}
305299

@@ -354,6 +348,7 @@ static GrB_Info LAGraph_RPQMatrixKleene(RPQMatrixPlan *plan, char *msg)
354348
changed = false ;
355349
}
356350
}
351+
GrB_Vector_free(&v) ;
357352
plan->res_mat = S ;
358353

359354
// GRB_TRY(GrB_Matrix_free(&I)) ;

0 commit comments

Comments
 (0)