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
+2 -2
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 */