Revert "python: fix call of Python handlers of events"

This reverts one part of commit 85235aec83 related to reference
counts.  Py_BuildValue always increments the reference count (when it
succeeds) and I could not reproduce the Python 3 problem that was
described there.

Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
Richard W.M. Jones
2023-02-17 17:29:59 +00:00
parent f68752462e
commit e07304de86

View File

@@ -139,7 +139,6 @@ guestfs_int_py_event_callback_wrapper (guestfs_h *g,
goto out;
}
Py_INCREF (args);
py_r = PyObject_CallObject (py_callback, args);
Py_DECREF (args);
if (py_r != NULL)