summaryrefslogtreecommitdiffstats
path: root/Modules/_pickle.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2017-02-02 09:56:47 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2017-02-02 09:56:47 (GMT)
commitfd6d0d2a18bb487ec06dbbeb1a53d0ac13384cfe (patch)
treee351ffe92e6c38a1ed5f5294a3718e10c62c56fa /Modules/_pickle.c
parentbee09aecc2c317fd3488b819ab88a13e0755189e (diff)
downloadcpython-fd6d0d2a18bb487ec06dbbeb1a53d0ac13384cfe.zip
cpython-fd6d0d2a18bb487ec06dbbeb1a53d0ac13384cfe.tar.gz
cpython-fd6d0d2a18bb487ec06dbbeb1a53d0ac13384cfe.tar.bz2
Issue #29368: Fix _Pickle_FastCall() usage in do_append()
_Pickle_FastCall() has a surprising API: it decrements the reference counter of its second argument.
Diffstat (limited to 'Modules/_pickle.c')
-rw-r--r--Modules/_pickle.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c
index 996d16e..e65b88e 100644
--- a/Modules/_pickle.c
+++ b/Modules/_pickle.c
@@ -5844,7 +5844,6 @@ do_append(UnpicklerObject *self, Py_ssize_t x)
return -1;
}
result = _Pickle_FastCall(extend_func, slice);
- Py_DECREF(slice);
Py_DECREF(extend_func);
if (result == NULL)
return -1;