projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
949f331
)
PyTuple_Pack() was missing va_end() in its error branch which lead to a resource...
author
Christian Heimes
<christian@cheimes.de>
Mon, 10 Sep 2012 00:54:51 +0000
(
02:54
+0200)
committer
Christian Heimes
<christian@cheimes.de>
Mon, 10 Sep 2012 00:54:51 +0000
(
02:54
+0200)
Objects/tupleobject.c
patch
|
blob
|
history
diff --git
a/Objects/tupleobject.c
b/Objects/tupleobject.c
index e99eda06f18e46881cc294d718c76bca9a9e523b..b3454600c9ba087f34fbf51113a2d567a222ac7a 100644
(file)
--- a/
Objects/tupleobject.c
+++ b/
Objects/tupleobject.c
@@
-194,8
+194,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 *);