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

Don't call Py_DECREF on null in _ttconv.cpp #2989

Merged
merged 1 commit into from Apr 19, 2014

Conversation

jkseppan
Copy link
Member

Clang's static checker noted that if PyBytes_FromString returns NULL
(presumably rare) then Py_DECREF gets called on NULL; throw an
exception instead. Also assert that the char* inputs are not NULL,
since the Python API functions don't usually check that.

Clang's static checker noted that if PyBytes_FromString returns NULL
(presumably rare) then Py_DECREF gets called on NULL; throw an
exception instead. Also assert that the char* inputs are not NULL,
since the Python API functions don't usually check that.
@tacaswell tacaswell added this to the v1.4.0 milestone Apr 19, 2014
@tacaswell tacaswell added the text label Apr 19, 2014
mdboom added a commit that referenced this pull request Apr 19, 2014
Don't call Py_DECREF on null in _ttconv.cpp
@mdboom mdboom merged commit eb7fd2a into matplotlib:master Apr 19, 2014
@jkseppan jkseppan deleted the tidyup-ttconv branch April 20, 2014 07:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants