Re: [PATCH 6/6] ch: Rework virCHProcessConnectMonitor()

2025-03-13 Thread Peter Krempa
On Thu, Mar 13, 2025 at 14:44:38 +0100, Michal Privoznik wrote: > Firstly, let's switch from explicit virCHDriverGetConfig() + > virObjectUnref() combo to g_autoptr(virCHDriverConfig). This > leaves us with the @monitor variable which is initialized to NULL > only to be then set to the retval of vi

[PATCH 6/6] ch: Rework virCHProcessConnectMonitor()

2025-03-13 Thread Michal Privoznik
Firstly, let's switch from explicit virCHDriverGetConfig() + virObjectUnref() combo to g_autoptr(virCHDriverConfig). This leaves us with the @monitor variable which is initialized to NULL only to be then set to the retval of virCHMonitorNew() and returned instantly. Well, the variable is now useles