Skip to content

Commit 1a8a56c

Browse files
committed
small edit
1 parent e8fbaf8 commit 1a8a56c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: Modules/_functoolsmodule.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,6 @@ partial_vectorcall(PyObject *self, PyObject *const *args,
492492
stack[tot_nargs + i] = val;
493493
i++;
494494
}
495-
Py_XDECREF(pto_kw_merged);
496495

497496
/* Resize Stack */
498497
if (n_merges && stack != small_stack) {
@@ -503,6 +502,8 @@ partial_vectorcall(PyObject *self, PyObject *const *args,
503502
}
504503
stack = tmp_stack;
505504
}
505+
506+
Py_XDECREF(pto_kw_merged);
506507
}
507508

508509
/* Copy Positionals to stack */

0 commit comments

Comments
 (0)