virseclabel: Resolve Coverity FORWARD_NULL issue

Resolve issue introduced by commit id '13adf1b'
This commit is contained in:
John Ferlan 2014-07-11 09:35:52 -04:00
parent da78351b57
commit 1c89f6ebd4

View File

@ -61,7 +61,7 @@ virSecurityLabelDefNew(const char *model)
if (VIR_ALLOC(seclabel) < 0 ||
VIR_STRDUP(seclabel->model, model) < 0) {
virSecurityLabelDefFree(seclabel);
seclabel = NULL;
return NULL;
}
seclabel->relabel = true;