[libvirt PATCH 16/21] qemu: Use glib memory functions in qemuProcessReadLog

Tim Wiederhake twiederh at redhat.com
Fri Sep 11 11:42:13 UTC 2020


Signed-off-by: Tim Wiederhake <twiederh at redhat.com>
---
 src/qemu/qemu_process.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index dd60fb0ddf..b1af35b933 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -2082,7 +2082,7 @@ qemuProcessReadLog(qemuDomainLogContextPtr logCtxt,
         got -= skip;
     }
 
-    ignore_value(VIR_REALLOC_N_QUIET(buf, got + 1));
+    buf = g_renew(char, buf, got + 1);
     *msg = buf;
     return 0;
 }
-- 
2.26.2




More information about the libvir-list mailing list