Skip to content

Commit 4480f5b

Browse files
miss-islingtonskirpichevkumaraditya303
authored
[3.13] gh-142595: Amend be5e0dc (fix NULL pointer dereference) (GH-142775) (GH-142789)
(cherry picked from commit 15a9762) Co-authored-by: Sergey B Kirpichev <[email protected]> Co-authored-by: Kumar Aditya <[email protected]>
1 parent c32a4c1 commit 4480f5b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Modules/_decimal/_decimal.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5922,8 +5922,9 @@ _decimal_exec(PyObject *m)
59225922

59235923
/* DecimalTuple */
59245924
ASSIGN_PTR(collections, PyImport_ImportModule("collections"));
5925-
obj = PyObject_CallMethod(collections, "namedtuple", "(ss)", "DecimalTuple",
5926-
"sign digits exponent");
5925+
ASSIGN_PTR(obj, PyObject_CallMethod(collections, "namedtuple", "(ss)",
5926+
"DecimalTuple",
5927+
"sign digits exponent"));
59275928
if (!PyType_Check(obj)) {
59285929
PyErr_SetString(PyExc_TypeError,
59295930
"type is expected from namedtuple call");

0 commit comments

Comments
 (0)