cpython/Modules/_zstd
Miss Islington (bot) 7f6a0c377b
[3.14] gh-148651: Fix refcount leak in _zstd decompressor options (GH-148657) (#148691)
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 446edda209)

Co-authored-by: Michael Bommarito <michael.bommarito@gmail.com>
2026-04-17 16:07:54 +00:00
..
clinic [3.14] gh-132983: Fix docstrings in `ZstdDict` (GH-137321) (#137343) 2025-08-03 22:37:49 +03:00
_zstdmodule.c [3.14] GH-136975: Emend a spelling error (algorthm -> algorithm) (GH-136999) (#137003) 2025-07-23 23:48:11 +03:00
_zstdmodule.h [3.14] GH-136975: Emend a spelling error (algorthm -> algorithm) (GH-136999) (#137003) 2025-07-23 23:48:11 +03:00
buffer.h [3.14] GH-136975: Emend a spelling error (algorthm -> algorithm) (GH-136999) (#137003) 2025-07-23 23:48:11 +03:00
compressor.c [3.14] GH-136975: Emend a spelling error (algorthm -> algorithm) (GH-136999) (#137003) 2025-07-23 23:48:11 +03:00
decompressor.c [3.14] gh-148651: Fix refcount leak in _zstd decompressor options (GH-148657) (#148691) 2026-04-17 16:07:54 +00:00
zstddict.c [3.14] gh-132983: Fix docstrings in `ZstdDict` (GH-137321) (#137343) 2025-08-03 22:37:49 +03:00
zstddict.h [3.14] GH-136975: Emend a spelling error (algorthm -> algorithm) (GH-136999) (#137003) 2025-07-23 23:48:11 +03:00