Skip to content

Commit

Permalink
Fix alloc/free new/delete inconsistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
pelesh committed Jun 11, 2024
1 parent 646f26c commit 26643c8
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions resolve/LinSolverDirectLUSOL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,20 +69,20 @@ namespace ReSolve
delete U_;
delete[] P_;
delete[] Q_;
free(a_);
free(indc_);
free(indr_);
free(p_);
free(q_);
free(lenc_);
free(lenr_);
free(locc_);
free(locr_);
free(iploc_);
free(iqloc_);
free(ipinv_);
free(iqinv_);
free(w_);
delete[] a_;
delete[] indc_;
delete[] indr_;
delete[] p_;
delete[] q_;
delete[] lenc_;
delete[] lenr_;
delete[] locc_;
delete[] locr_;
delete[] iploc_;
delete[] iqloc_;
delete[] ipinv_;
delete[] iqinv_;
delete[] w_;
L_ = U_ = nullptr;
P_ = Q_ = indc_ = indr_ = p_ = q_ = lenc_ = lenr_ = locc_ = locr_ = iploc_ =
iqloc_ = ipinv_ = iqinv_ = nullptr;
Expand Down

0 comments on commit 26643c8

Please sign in to comment.