-
Notifications
You must be signed in to change notification settings - Fork 75
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
Infinite loop when nil passed in as graph #73
Comments
As of libgraph 1.16 this isn't fixed; Also btw it's not only an infinite loop but a rapid memory leak. |
This appears to be due to this bit of code:
When you call
PR here |
add_vertex would loop infinitely if passed non-graph value as first parameter b/c it would always match the last function head def for add_vertex/3, which was a recursive call. Making all function heads match first parameter on %Graph{} should solve this issue.
The following code results in an infinite loop:
The text was updated successfully, but these errors were encountered: