Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit11d77d2

Browse files
[3.14]gh-132983: Fix refleak in zstd dictionary functions (gh-134463)
(cherry picked from commitfb68776, AKAgh-134459)Co-authored-by: Emma Smith <emma@emmatyping.dev>
1 parentf8ced87 commit11d77d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎Modules/_zstd/_zstdmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ _zstd_train_dict_impl(PyObject *module, PyBytesObject *samples_bytes,
251251
&chunk_sizes);
252252
if (chunks_number<0)
253253
{
254-
returnNULL;
254+
gotoerror;
255255
}
256256

257257
/* Allocate dict buffer */
@@ -333,7 +333,7 @@ _zstd_finalize_dict_impl(PyObject *module, PyBytesObject *custom_dict_bytes,
333333
&chunk_sizes);
334334
if (chunks_number<0)
335335
{
336-
returnNULL;
336+
gotoerror;
337337
}
338338

339339
/* Allocate dict buffer */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp