mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 14:45:24 +00:00
Do not free static buffer with UUID
As anywhere else, uuid is defined as a fixed size array inside _virSecret structure; we shouldn't try to free it.
This commit is contained in:
parent
c5ec45a3a4
commit
72a7f8b2a9
@ -1271,7 +1271,6 @@ virGetSecret(virConnectPtr conn, const unsigned char *uuid,
|
||||
error:
|
||||
if (ret != NULL) {
|
||||
VIR_FREE(ret->usageID);
|
||||
VIR_FREE(ret->uuid);
|
||||
VIR_FREE(ret);
|
||||
}
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user