-
Notifications
You must be signed in to change notification settings - Fork 1
Lazyyy #105
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
base: main
Are you sure you want to change the base?
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.
This PR is being reviewed by Cursor Bugbot
Details
You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.
To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.
| elif (arg & 2) and argrepr: | ||
| argrepr = f"{argrepr} + eager" | ||
| else: | ||
| print(deop) |
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.
| if (attr == Py_None) { | ||
| attr = NULL; | ||
| } | ||
| assert(!attr || PyObject_IsTrue(attr)); |
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.
| ERROR_IF(res_o == NULL); | ||
| //PyStackRef_CLOSE(*res); | ||
| *res = PyStackRef_FromPyObjectSteal(res_o); | ||
| } |
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.
Bug: Lazy Import Reference Leak
Reference leaks occur in LOAD_NAME and LOAD_GLOBAL instructions when handling lazy import objects. When a lazy import is resolved, its original reference is not properly released before being replaced by the loaded module, leading to a memory leak. The commented-out PyStackRef_CLOSE in LOAD_GLOBAL indicates this missing cleanup.
No description provided.