[libvirt PATCH 1/2] ch: virCHMonitorGetIOThreads: fix g_steal_pointer usage

Ján Tomko jtomko at redhat.com
Wed Feb 2 16:39:21 UTC 2022


Fixes: 81226d88034fd460855ac75dd2c985ca91ff6219
Signed-off-by: Ján Tomko <jtomko at redhat.com>
---
 src/ch/ch_monitor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ch/ch_monitor.c b/src/ch/ch_monitor.c
index 4d5d2c69b8..60905e36c2 100644
--- a/src/ch/ch_monitor.c
+++ b/src/ch/ch_monitor.c
@@ -977,7 +977,7 @@ virCHMonitorGetIOThreads(virCHMonitor *mon,
     }
 
     VIR_DEBUG("niothreads = %ld", niothreads);
-    *iothreads = g_steal_pointer(iothreadinfolist);
+    *iothreads = g_steal_pointer(&iothreadinfolist);
     return niothreads;
 
  error:
-- 
2.34.1




More information about the libvir-list mailing list