mirror of
https://github.com/python/cpython.git
synced 2026-05-09 03:50:56 +00:00
gh-148651: Fix refcount leak in _zstd decompressor options (GH-148657)
The option parsing in Modules/_zstd/decompressor.c had a missing Py_DECREF(value) before the early return -1 when PyLong_AsInt(key) fails. The identical code in Modules/_zstd/compressor.c line 158 has the fix.
(cherry picked from commit
|
||
|---|---|---|
| .. | ||
| clinic | ||
| _zstdmodule.c | ||
| _zstdmodule.h | ||
| buffer.h | ||
| compressor.c | ||
| decompressor.c | ||
| zstddict.c | ||
| zstddict.h | ||