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

[3.8] bpo-38823: Fix refleak in marshal init error path (GH-17260)#17280

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bpo-38823: Fix refleak in marshal init error path (GH-17260)
(cherry picked from commit33b671e)Co-authored-by: Brandt Bucher <brandtbucher@gmail.com>
  • Loading branch information
@brandtbucher@miss-islington
brandtbucher authored andmiss-islington committedNov 20, 2019
commit7187ee0312ea9bbedd31cb1d98f86f5b024322ce
5 changes: 4 additions & 1 deletionPython/marshal.c
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -1829,6 +1829,9 @@ PyMarshal_Init(void)
PyObject *mod = PyModule_Create(&marshalmodule);
if (mod == NULL)
return NULL;
PyModule_AddIntConstant(mod, "version", Py_MARSHAL_VERSION);
if (PyModule_AddIntConstant(mod, "version", Py_MARSHAL_VERSION) < 0) {
Py_DECREF(mod);
return NULL;
}
return mod;
}

[8]ページ先頭

©2009-2025 Movatter.jp