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

Fix refcount handling for None object #46

Merged
merged 1 commit into from
Sep 6, 2016

Conversation

saghul
Copy link
Contributor

@saghul saghul commented Aug 30, 2016

Py_None is a singleton, but its refcount has to be managed like a
regular object, that, it needs to be Py_INCREF'd before returning it or
assigning it to a structure and it needs to be Py_DECREF'd when the
containing object goes away.

Py_None is a singleton, but its refcount has to be managed like a
regular object, that, it needs to be Py_INCREF'd before returning it or
assigning it to a structure and it needs to be Py_DECREF'd when the
containing object goes away.
@MelindaShore MelindaShore merged commit e7459ff into getdnsapi:develop Sep 6, 2016
@MelindaShore
Copy link
Contributor

Again, many thanks! Wasn't aware of refcount handling wrt Py_None.

@saghul
Copy link
Contributor Author

saghul commented Sep 6, 2016

Glad I could help!

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.

2 participants