mirror of
https://github.com/systemd/systemd.git
synced 2026-07-20 14:30:45 +00:00
systemd-python: fix segfault on double close
This commit is contained in:
@@ -171,6 +171,7 @@ PyDoc_STRVAR(Reader_close__doc__,
|
||||
static PyObject* Reader_close(Reader *self, PyObject *args)
|
||||
{
|
||||
sd_journal_close(self->j);
|
||||
self->j = NULL;
|
||||
Py_RETURN_NONE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user