summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2000-08-18 19:53:25 (GMT)
committerFred Drake <fdrake@acm.org>2000-08-18 19:53:25 (GMT)
commit04e654a63c012cc321572e6dabbe70550c4f319f (patch)
tree41bfef54ba9e67fc0b622219094a31f5f5826134 /Python/ceval.c
parentce4dc41b1a2be5b5335bcbc0865b145852a5c0e5 (diff)
downloadcpython-04e654a63c012cc321572e6dabbe70550c4f319f.zip
cpython-04e654a63c012cc321572e6dabbe70550c4f319f.tar.gz
cpython-04e654a63c012cc321572e6dabbe70550c4f319f.tar.bz2
Remove a couple of warnings turned up by "gcc -Wall".
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index af28cdc..92fa887 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -2856,8 +2856,9 @@ find_from_args(PyFrameObject *f, int nexti)
if (!name)
Py_DECREF(list);
else {
- if (PyList_Append(list, name) < 0)
+ if (PyList_Append(list, name) < 0) {
Py_DECREF(list);
+ }
Py_DECREF(name);
}
} else {