[Python-checkins] cpython (3.3): Fix reference leak in _pickle.
alexandre.vassalotti
python-checkins at python.org
Sun Apr 21 06:29:05 CEST 2013
http://hg.python.org/cpython/rev/54a44184bada
changeset: 83478:54a44184bada
branch: 3.3
parent: 83476:ddfc092355fd
user: Alexandre Vassalotti <alexandre at peadrop.com>
date: Sat Apr 20 21:28:21 2013 -0700
summary:
Fix reference leak in _pickle.
files:
Modules/_pickle.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Modules/_pickle.c b/Modules/_pickle.c
--- a/Modules/_pickle.c
+++ b/Modules/_pickle.c
@@ -5039,11 +5039,13 @@
if (result == NULL) {
Pdata_clear(self->stack, i + 1);
Py_SIZE(self->stack) = x;
+ Py_DECREF(append_func);
return -1;
}
Py_DECREF(result);
}
Py_SIZE(self->stack) = x;
+ Py_DECREF(append_func);
}
return 0;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list