[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

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



Signed-off-by: Tim Wiederhake <twiederh 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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]