Skip to content

Commit

Permalink
fix memory leak
Browse files Browse the repository at this point in the history
  • Loading branch information
jjhforrest committed Nov 21, 2024
1 parent f7b0cce commit 499cc33
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Osi/OsiCuts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,10 @@ bool OsiCuts::insertIfNotDuplicateAndClean(OsiRowCut &rc,
//printf ("badly scaled cut - rhs %g els %g -> %g - type %d\n",rhs,smallest,largest,
// typeCut);
//if (rhs>1.0e5 && smallest < 1.0e-4)
if (typeCut==61) // CglTwoMir
if (typeCut==61) {// CglTwoMir
delete newCutPtr;
return false;
}
}
}
newCutPtr->setRow(numberElements,newIndices,newElements);
Expand Down

0 comments on commit 499cc33

Please sign in to comment.