Skip to content

Commit 499cc33

Browse files
committed
fix memory leak
1 parent f7b0cce commit 499cc33

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Osi/OsiCuts.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,10 @@ bool OsiCuts::insertIfNotDuplicateAndClean(OsiRowCut &rc,
528528
//printf ("badly scaled cut - rhs %g els %g -> %g - type %d\n",rhs,smallest,largest,
529529
// typeCut);
530530
//if (rhs>1.0e5 && smallest < 1.0e-4)
531-
if (typeCut==61) // CglTwoMir
531+
if (typeCut==61) {// CglTwoMir
532+
delete newCutPtr;
532533
return false;
534+
}
533535
}
534536
}
535537
newCutPtr->setRow(numberElements,newIndices,newElements);

0 commit comments

Comments
 (0)