HomePhabricator

revlog: fix excessive decref on tuple creation failure in parse_index2()

Authored by yuja.

Description

revlog: fix excessive decref on tuple creation failure in parse_index2()

Since Py_BuildValue() steals the ownership of "N" arguments, these objects
would already be freed if Py_BuildValue() returned NULL.

https://github.com/python/cpython/blob/2.7/Python/modsupport.c#L292

Details

Committed
yujaJul 19 2020, 4:24 AM
Parents
rHG04c428e93770: tests: correctly match clang-format version >= 10
Branches
Unknown
Tags
Unknown