From 1c89f6ebd40579a49657084604b0c7537dd115c6 Mon Sep 17 00:00:00 2001 From: John Ferlan Date: Fri, 11 Jul 2014 09:35:52 -0400 Subject: [PATCH] virseclabel: Resolve Coverity FORWARD_NULL issue Resolve issue introduced by commit id '13adf1b' --- src/util/virseclabel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/virseclabel.c b/src/util/virseclabel.c index e9d973c6be..02a834223d 100644 --- a/src/util/virseclabel.c +++ b/src/util/virseclabel.c @@ -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;