diff options
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r-- | Objects/stringobject.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c index 5928128ce1..5e6a5a5938 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; } |