Skip to content

Commit

Permalink
Be a little safer about free the lock
Browse files Browse the repository at this point in the history
  • Loading branch information
jcapriot committed Feb 29, 2024
1 parent 4ed000d commit d762962
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pydiso/mkl_solver.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,9 @@ cdef class MKLPardisoSolver:
if err!=0:
raise PardisoError("Memmory release error "+_err_messages[err])
#dealloc lock
if self.lock is not NULL:
PyThread_free_lock(self.lock)
self.lock = NULL

cdef _analyze(self):
#phase = 11
Expand Down

0 comments on commit d762962

Please sign in to comment.