mirror of
https://github.com/python/cpython.git
synced 2026-05-09 14:11:28 -04:00
Make new gcc -Wall happy
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user