Skip to content

Commit a05fc59

Browse files
Merge branch '3924-fix-scip-exact-mode-segfaults-double-free-on-exit-4' into 'master'
Resolve "SCIP exact mode segfaults (double free?) on exit" infinity See merge request integer/scip!3859
2 parents 56be91a + 39df0c1 commit a05fc59

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/scip/cons_exactlinear.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2815,6 +2815,8 @@ void consdataGetActivity(
28152815
}
28162816
assert(nneginf >= 0 && nposinf >= 0);
28172817

2818+
SCIPrationalFreeBuffer(SCIPbuffer(scip), &solval);
2819+
28182820
SCIPdebugMsg(scip, "activity of linear constraint: %.15g, %d positive infinity values, %d negative infinity values \n", SCIPrationalGetReal(activity), nposinf, nneginf);
28192821

28202822
/* check for amount of infinity values and correct the activity */
@@ -2827,7 +2829,6 @@ void consdataGetActivity(
28272829
SCIPrationalSetNegInfinity(activity);
28282830

28292831
SCIPrationalDebugMessage("corrected activity of linear constraint: %q\n", activity);
2830-
SCIPrationalFreeBuffer(SCIPbuffer(scip), &solval);
28312832
}
28322833
}
28332834

0 commit comments

Comments
 (0)