summaryrefslogtreecommitdiffstats
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-10 22:16:39 (GMT)
committerGuido van Rossum <guido@python.org>1998-04-10 22:16:39 (GMT)
commit1109fbca76d08bb2f11f2899580d2ab7dbe796fa (patch)
treed52f999b597674ea5648059207a1eccaf173e141 /Objects/stringobject.c
parentbb3649e2ba386adc16fadc2e0d1f2606c047e6aa (diff)
downloadcpython-1109fbca76d08bb2f11f2899580d2ab7dbe796fa.zip
cpython-1109fbca76d08bb2f11f2899580d2ab7dbe796fa.tar.gz
cpython-1109fbca76d08bb2f11f2899580d2ab7dbe796fa.tar.bz2
Make new gcc -Wall happy
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r--Objects/stringobject.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index 5928128..5e6a5a5 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -1016,14 +1016,16 @@ PyString_Format(format, args)
"not all arguments converted");
goto error;
}
- if (args_owned)
+ if (args_owned) {
Py_DECREF(args);
+ }
_PyString_Resize(&result, reslen - rescnt);
return result;
error:
Py_DECREF(result);
- if (args_owned)
+ if (args_owned) {
Py_DECREF(args);
+ }
return NULL;
}