-
Notifications
You must be signed in to change notification settings - Fork 205
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 FILE* resource leak in agread() wrapper #415
Conversation
Codecov Report
@@ Coverage Diff @@
## main #415 +/- ##
=======================================
Coverage 80.87% 80.87%
=======================================
Files 5 5
Lines 1255 1255
=======================================
Hits 1015 1015
Misses 240 240 Continue to review full report at Codecov.
|
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 @nehaljwani !
Ack, I just noticed that the changes here modify the generated In other words, the changes to |
I'm not sure, and I don't have a setup to test this, but it looks like the following might work: line 18: add the dup() around fd
line 94-96: add a line to fclose(arg1);
|
Yeah that was my first thought as well... unfortunately the first line is in a templated function, so it affects two wrapped functions - one of which then causes an infinite hang when running the test suite. |
Hi, |
* Add test to probe repeated IO on Windows. * Fix FILE* resource leak in agread() wrapper Resolves pygraphviz#213 Co-authored-by: Ross Barnowski <rossbar@berkeley.edu>
Resolves #213