Skip to content

simplify memory management of the conv dictionary#219

Merged
methane merged 1 commit intoPyMySQL:masterfrom
methane:conv-memory-management
Dec 21, 2017
Merged

simplify memory management of the conv dictionary#219
methane merged 1 commit intoPyMySQL:masterfrom
methane:conv-memory-management

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