mirror of
https://github.com/python/cpython.git
synced 2025-09-10 10:47:34 +00:00
Issue #8914: fix various warnings from the Clang static analyzer v254.
This commit is contained in:
parent
79da6b7075
commit
b94767ff44
36 changed files with 69 additions and 84 deletions
|
@ -1176,7 +1176,6 @@ PySys_AddXOption(const wchar_t *s)
|
|||
PyObject *opts;
|
||||
PyObject *name = NULL, *value = NULL;
|
||||
const wchar_t *name_end;
|
||||
int r;
|
||||
|
||||
opts = get_xoptions();
|
||||
if (opts == NULL)
|
||||
|
@ -1194,7 +1193,7 @@ PySys_AddXOption(const wchar_t *s)
|
|||
}
|
||||
if (name == NULL || value == NULL)
|
||||
goto error;
|
||||
r = PyDict_SetItem(opts, name, value);
|
||||
PyDict_SetItem(opts, name, value);
|
||||
Py_DECREF(name);
|
||||
Py_DECREF(value);
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue