mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
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
Block a user