Skip to content

Commit e73cfa6

Browse files
committed
WIP/RFC: Do not call SCIPincludeObjExprhdlr in exprCopyhdlrObj
src/objscip/objexprhdlr.cpp (exprCopyhdlrObj): Comment out the call to SCIPincludeObjExprhdlr because this is called from the Java code. See scipopt#149 (comment) for details. TODO: This is a quick hack to fix the double free. Find a solution that is acceptable upstream and gets applied consistently also to constraint handlers etc.
1 parent 784bd76 commit e73cfa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/objscip/objexprhdlr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ SCIP_DECL_EXPRCOPYHDLR(exprCopyhdlrObj)
7676
newobjexprhdlr = dynamic_cast<scip::ObjExprhdlr*> (exprhdlrdata->objexprhdlr->clone(scip));
7777

7878
/* call include method of expression handler object */
79-
SCIP_CALL( SCIPincludeObjExprhdlr(scip, newobjexprhdlr, TRUE) );
79+
//SCIP_CALL( SCIPincludeObjExprhdlr(scip, newobjexprhdlr, TRUE) );
8080
}
8181

8282
return SCIP_OKAY;

0 commit comments

Comments
 (0)