Skip to content
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

Memleak in GLPK interface #7572

Closed
malb opened this issue Dec 1, 2009 · 5 comments
Closed

Memleak in GLPK interface #7572

malb opened this issue Dec 1, 2009 · 5 comments

Comments

@malb
Copy link
Member

malb commented Dec 1, 2009

The GLPK interface sage_mallocs various arrays and never frees them. Also the interface uses Python keywords as variable names.

CC: @nathanncohen

Component: packages: standard

Issue created by migration from https://trac.sagemath.org/ticket/7572

@malb malb added this to the sage-4.3 milestone Dec 1, 2009
@malb
Copy link
Member Author

malb commented Dec 1, 2009

comment:1

Attachment: glpk_sage_free.patch.gz

The attached patch is for the GLPK SPKG.

@nathanncohen
Copy link
Mannequin

nathanncohen mannequin commented Dec 1, 2009

comment:2

Thank you for your help !!! just one question though : on which version of GLPK is your patch based ? The new version of GLPK is available in #7268 and still waiting for review... Could we merge your changes in ? :-)

I had no idea that "id" was a python keyword... And thank you for noticing this memory leak !

Nathann

@malb
Copy link
Member Author

malb commented Dec 1, 2009

comment:3

Replying to @nathanncohen:

Thank you for your help !!! just one question though : on which version of GLPK is your patch based ? The new version of GLPK is available in #7268 and still waiting for review... Could we merge your changes in ? :-)

Sure, I'll take a look at #7268.

I had no idea that "id" was a python keyword... And thank you for noticing this memory leak !

Me neither, but Emacs noticed it :) I think there's still a memleak there, you new glp_ioct but never delete it. However, I couldn't find anything on glp_ioct anywhere.

@nathanncohen
Copy link
Mannequin

nathanncohen mannequin commented Dec 1, 2009

comment:4

This could be deleted as part of the whole GLPK version of the LP syste, though... But it could be good to take a look at it, indeed :-)

Nathann

@malb
Copy link
Member Author

malb commented Dec 1, 2009

comment:5

This is now fixed in #7268

@malb malb removed the s: needs info label Dec 1, 2009
@malb malb closed this as completed Dec 1, 2009
@sagetrac-mvngu sagetrac-mvngu mannequin removed this from the sage-4.3 milestone Dec 1, 2009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant