systemd-python: add missing check for return of PyDict_SetItem in _reader.c
This commit is contained in:
parent
533740e161
commit
684ecf306a
|
@ -208,7 +208,7 @@ static PyObject* Reader_get_next(Reader *self, PyObject *args)
|
|||
if (r < 0)
|
||||
goto error;
|
||||
|
||||
PyDict_SetItem(dict, key, tmp_list);
|
||||
r = PyDict_SetItem(dict, key, tmp_list);
|
||||
if (r < 0)
|
||||
goto error;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue