diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 82ccf4dc1826afd7f6b8f1944d52c4c4aa3a01c9..c02d6f850208a29a21e5367834dd8dbb2b0bf886 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -3179,6 +3179,7 @@ error: virSecurityLabelDefFree(def->seclabels[i - 1]); } VIR_FREE(def->seclabels); + def->nseclabels = 0; VIR_FREE(list); return -1; }