Skip to content

Commit bccbf95

Browse files
authored
Merge pull request #300 from gtjusila/MemoryFix
Fix Issue With Garbage Collection
2 parents 8356bb6 + c634930 commit bccbf95

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/MOI_wrapper.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,8 @@ function MOI.empty!(o::Optimizer)
316316
o.conflict_status = MOI.COMPUTE_CONFLICT_NOT_CALLED
317317
o.moi_separator = nothing
318318
o.moi_heuristic = nothing
319+
finalizer(free_scip, o.inner)
320+
319321
return nothing
320322
end
321323

0 commit comments

Comments
 (0)