HomePhabricator

osutil: fix excessive decref on tuple creation failure in listdir()

Authored by yuja.

Description

osutil: fix excessive decref on tuple creation failure in listdir()

The stat object would be freed on error for the same reason as the previous
patch. makestat() can be inlined, but this patch doesn't change it.

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

The APPLE code is untested.

Details

Committed
yujaJul 19 2020, 4:35 AM
Parents
rHG2bc5d1531235: revlog: fix excessive decref on tuple creation failure in parse_index2()
Branches
Unknown
Tags
Unknown