-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes memory leaks for nested fields (#203)
* fix memory leaks when converting Python types to native types This separates memory allocation out from convert_from_py function. Now it uses separate create_message function to allocate message, making it explicit gives better control where and how memory is allocated and freed. * Use only one function to get function pointers from PyCapsule. * fix style * fix more style problems
- Loading branch information
1 parent
438ef25
commit 98ad24a
Showing
1 changed file
with
113 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters