gh-132983: Fix refleak in zstd dictionary functions (gh-134459)

This commit is contained in:
Emma Smith 2025-05-21 15:09:34 -04:00 committed by GitHub
parent 1a07a01014
commit fb68776591
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 */