diff options
author | Georg Brandl <georg@python.org> | 2012-09-29 09:27:15 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2012-09-29 09:27:15 +0200 |
commit | 99a247fd01c1cd780c0c3ee1116657627f1ee744 (patch) | |
tree | 319e33cb6612c3fafb2eb82e15c5e85e3d771e4f /Objects/tupleobject.c | |
parent | 1628eaa5dc8892ff381ca7558cc7c8d80fac494d (diff) | |
parent | 8ed677db129171317b8ee7cd45b39b9013f5a2d6 (diff) | |
download | cpython-git-99a247fd01c1cd780c0c3ee1116657627f1ee744.tar.gz |
Merge with main repo default branch.
Diffstat (limited to 'Objects/tupleobject.c')
-rw-r--r-- | Objects/tupleobject.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Objects/tupleobject.c b/Objects/tupleobject.c index 013db69414..b76125a1c1 100644 --- a/Objects/tupleobject.c +++ b/Objects/tupleobject.c @@ -210,8 +210,10 @@ PyTuple_Pack(Py_ssize_t n, ...) va_start(vargs, n); result = PyTuple_New(n); - if (result == NULL) + if (result == NULL) { + va_end(vargs); return NULL; + } items = ((PyTupleObject *)result)->ob_item; for (i = 0; i < n; i++) { o = va_arg(vargs, PyObject *); |