mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 11:22:23 +00:00
qemu: Use glib memory functions in qemuDomainMasterKeyReadFile
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
e5c2b25075
commit
42459f0b01
@ -511,7 +511,7 @@ qemuDomainMasterKeyReadFile(qemuDomainObjPrivatePtr priv)
|
||||
goto error;
|
||||
}
|
||||
|
||||
ignore_value(VIR_REALLOC_N_QUIET(masterKey, masterKeyLen));
|
||||
masterKey = g_renew(uint8_t, masterKey, masterKeyLen);
|
||||
|
||||
priv->masterKey = masterKey;
|
||||
priv->masterKeyLen = masterKeyLen;
|
||||
|
Loading…
x
Reference in New Issue
Block a user