mirror of
https://github.com/python/cpython.git
synced 2024-12-14 12:26:47 +08:00
Don't Py_DECREF NULL variable in io.IncrementalNewlineDecoder.
Found with Clang's Static Analyzer.
This commit is contained in:
parent
c1b34a36f8
commit
0f9eec19ee
@ -19,6 +19,8 @@ Core and Builtins
|
||||
Library
|
||||
-------
|
||||
|
||||
- Don't Py_DECREF NULL variable in io.IncrementalNewlineDecoder.
|
||||
|
||||
- Issue #8515: Set __file__ when run file in IDLE.
|
||||
Initial patch by Bruce Frederiksen.
|
||||
|
||||
|
@ -460,7 +460,7 @@ _PyIncrementalNewlineDecoder_decode(PyObject *_self,
|
||||
output = PyUnicode_FromKindAndData(kind, translated, out);
|
||||
PyMem_Free(translated);
|
||||
if (!output)
|
||||
goto error;
|
||||
return NULL;
|
||||
}
|
||||
self->seennl |= seennl;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user