Skip to content

Commit

Permalink
Fix Resource Leak issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Shubham Vasudeo Desai committed Jan 25, 2025
1 parent c0b45cf commit 780f145
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/gmath/solvers_classic_iter.c
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ int G_math_solver_jacobi(double **A, double *x, double *b, int rows, int maxit,
break;
}

G_free(Enew);

return 1;
}

Expand Down Expand Up @@ -285,5 +287,7 @@ int G_math_solver_gs(double **A, double *x, double *b, int rows, int maxit,
break;
}

G_free(Enew);

return 1;
}

0 comments on commit 780f145

Please sign in to comment.