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

simplify memory management of the conv dictionary #219

Merged
merged 1 commit into from
Dec 21, 2017
Merged

simplify memory management of the conv dictionary #219

merged 1 commit into from
Dec 21, 2017

Conversation

methane
Copy link
Member

@methane methane commented Dec 21, 2017

In ResultObject_Initialize, always borrow the conv dictionary from the
caller. This simplifies the code, removes an allocation, and fixes ref
leaks in error cases.

In ResultObject_Initialize, always borrow the conv dictionary from the
caller. This simplifies the code, removes an allocation, and fixes ref
leaks in error cases.
@methane
Copy link
Member Author

methane commented Dec 21, 2017

ref: farcepest/MySQLdb1#135

@methane methane merged commit b948553 into PyMySQL:master Dec 21, 2017
@methane methane deleted the conv-memory-management branch December 21, 2017 09:26
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