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

Add missing Py_DECREF to error handling #96

Merged
merged 1 commit into from
Jun 2, 2020

Conversation

Gadgetoid
Copy link
Contributor

This should fix all of the issues I've found in #95 so far. However; It's by no means a comprehensive review of memory/reference counting issues.

For sequence length checking I have adopted the method used in xfer3 by @dimas where the length and sequence validity checks are separated since only the former requires a DECREF call.

@doceme
Copy link
Owner

doceme commented May 29, 2020

@Gadgetoid, have you tested this enough to feel confident including it in the next release?

@doceme doceme merged commit 0891de9 into doceme:master Jun 2, 2020
@Gadgetoid
Copy link
Contributor Author

@doceme yes- I have had a number of customers install the modified version of the library and report that it fixed their issue. No other side-effects have (yet) been reported. I've also run it with success for some time, albeit I had to move on to other things since.

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