mirror of
https://github.com/protocolbuffers/protobuf
synced 2026-08-26 02:23:14 -04:00
PyTuple_Pack increments the reference count of its arguments. When PyTuple_Pack(2, start, end) was passed directly to PyList_SetItem, the start and end PyLong objects were leaked on every call. Store the tuple created by PyTuple_Pack and DECREF start and end before inserting into the list. PiperOrigin-RevId: 937601625 |
||
|---|---|---|
| .. | ||
| protobuf | ||
| __init__.py | ||