mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
virseclabel: Resolve Coverity FORWARD_NULL issue
Resolve issue introduced by commit id '13adf1b'
This commit is contained in:
parent
da78351b57
commit
1c89f6ebd4
@ -61,7 +61,7 @@ virSecurityLabelDefNew(const char *model)
|
|||||||
if (VIR_ALLOC(seclabel) < 0 ||
|
if (VIR_ALLOC(seclabel) < 0 ||
|
||||||
VIR_STRDUP(seclabel->model, model) < 0) {
|
VIR_STRDUP(seclabel->model, model) < 0) {
|
||||||
virSecurityLabelDefFree(seclabel);
|
virSecurityLabelDefFree(seclabel);
|
||||||
seclabel = NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
seclabel->relabel = true;
|
seclabel->relabel = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user