-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix memory leak in umfpack_numeric! #37472
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a quick style comment: indention is slightly off (by two characters?). These one-line branches are often written as
U.numeric != C_NULL && umfpack_free_numeric(U)
I made the change. It was a tab, my mistake. |
Just to make sure: did you check that the performance benefits (of |
lu! is still faster than lu. The benefit comes from the reuse of the Symbolic object, the Numeric object is recreated each time. EDIT: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I wonder if we ever manage to wrap these functions correctly.
Do we just ignore FreeBSD failures for the time being? |
(cherry picked from commit b17cd10)
(cherry picked from commit b17cd10)
Fix #37118
If umfpack_numeric! is called on a UmfpackLU struct that has already been factorized, its pointer "numeric" is overwritten without freeing the pointed Numeric object.
This simple fix does: