mirror of
https://github.com/python/cpython.git
synced 2025-08-08 10:58:51 +00:00
gh-132983: Fix refleak in zstd dictionary functions (gh-134459)
This commit is contained in:
parent
1a07a01014
commit
fb68776591
1 changed files with 2 additions and 2 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue