mirror of https://gitee.com/openkylin/libvirt.git
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:
parent
3e60deeed3
commit
caf5a88e59
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue