mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-22 21:25:13 +00:00
48e1f9aadc
The `py::args` or `py::kwargs` arguments aren't properly referenced when added to the function_call arguments list: their reference counts drop to zero if the first (non-converting) function call fails, which means they might be cleaned up before the second pass call runs. This commit adds a couple of extra `object`s to the `function_call` where we can stash a reference to them when needed to tie their lifetime to the function_call object's lifetime. (Credit to YannickJadoul for catching and proposing a fix in #1223). |
||
---|---|---|
.. | ||
pybind11 |