You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dbccb70
Browse filesBrowse the repository at this point in the historyBrowse files
Fix DATE/TIMESTAMP/TIMESTAMP_TZ ref leak in Python binding
PyDate_FromDate, PyDateTime_FromDateAndTime and
PyDateTimeAPI->DateTime_FromDateAndTime each return a new reference.
Wrapping them with py::cast<py::object>(PyObject*) treats the pointer as
borrowed and adds another reference, leaking one Python object per value
returned via get_next/get_all/get_n/rows_as_dict/iteration (including inside
LIST/STRUCT/node/rel).
Steal the new reference with py::reinterpret_steal instead, propagating the
Python error when construction fails.
Fixes#78
0 commit comments