Yasuhito FUTATSUKI wrote on Sat, 23 May 2020 11:08 +0900: > I think it can be fixed by overriding _global_py_pool to $input in "in" > typemap, when $1 is updated. It assumes that there are no APIs that > uses two or more result_pool like apr_pool_t * argument for allocationg > return value.
What about svn_repos_node_editor()? It has two pools, and if I'm reading the docstring correctly, "pool" will be used both for temporary allocations and for allocating *editor and *edit_baton, while "node_pool" will be used to allocate the tree that function constructs. That function is from 1.0 [according to its docstring], so it precedes the result_pool/scratch_pool convention by several years. Cheers, Daniel P.S. Found that with «grep -h -Eo 'apr_pool_t[ *]*[A-Za-z0-9_]*' subversion/include/*.h | sort | uniq -c».