mirror of
https://github.com/python/cpython.git
synced 2025-09-04 16:01:10 +00:00
Make new gcc -Wall happy
This commit is contained in:
parent
bb3649e2ba
commit
1109fbca76
4 changed files with 13 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue