From: John Ferlan Date: Fri, 11 Jul 2014 13:35:52 +0000 (-0400) Subject: virseclabel: Resolve Coverity FORWARD_NULL issue X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1c89f6ebd40579a49657084604b0c7537dd115c6;p=libvirt.git virseclabel: Resolve Coverity FORWARD_NULL issue Resolve issue introduced by commit id '13adf1b' --- 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;