Skip to content

Conversation

@iritkatriel
Copy link
Owner

No description provided.

PyObject *tmp = REG(oparg2);
REG(oparg2) = res;
Py_XDECREF(tmp);
ERROR_IF(res == NULL, error);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why destroy the register before jumping to the error label?

Also, Isn't there a macro Py_SETREF() that does the little dance with the temp variable and the XDECREF?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I forgot what it was called. Everything here is now on the new PR (on today's main). So I can close this one and we only have one on the go.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants