mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-08 22:15:21 +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;
|
got -= skip;
|
||||||
}
|
}
|
||||||
|
|
||||||
ignore_value(VIR_REALLOC_N_QUIET(buf, got + 1));
|
buf = g_renew(char, buf, got + 1);
|
||||||
*msg = buf;
|
*msg = buf;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user