https://github.com/python/cpython/commit/fb68776591485cacd63a97a342bf294a6ae6d4e4 commit: fb68776591485cacd63a97a342bf294a6ae6d4e4 branch: main author: Emma Smith <e...@emmatyping.dev> committer: ericsnowcurrently <ericsnowcurren...@gmail.com> date: 2025-05-21T19:09:34Z summary:
gh-132983: Fix refleak in zstd dictionary functions (gh-134459) files: M Modules/_zstd/_zstdmodule.c diff --git a/Modules/_zstd/_zstdmodule.c b/Modules/_zstd/_zstdmodule.c index b2e4f95b906356..17d3bff1e98769 100644 --- a/Modules/_zstd/_zstdmodule.c +++ b/Modules/_zstd/_zstdmodule.c @@ -251,7 +251,7 @@ _zstd_train_dict_impl(PyObject *module, PyBytesObject *samples_bytes, &chunk_sizes); if (chunks_number < 0) { - return NULL; + goto error; } /* Allocate dict buffer */ @@ -333,7 +333,7 @@ _zstd_finalize_dict_impl(PyObject *module, PyBytesObject *custom_dict_bytes, &chunk_sizes); if (chunks_number < 0) { - return NULL; + goto error; } /* Allocate dict buffer */ _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: arch...@mail-archive.com