qemu: Use glib memory functions in qemuProcessReadLog

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Signed-off-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Tim Wiederhake 2020-09-11 13:42:13 +02:00 committed by Ján Tomko
parent 3e60deeed3
commit caf5a88e59

View File

@ -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;
}