Coverity found that xenXMConfigCacheAddFile has an error path in which
no error message and a -1 was not returned which could have resulted in
a NULL dereference in a VIR_DEBUG statement and of course an erroneous
0 value returned!
virDomainDefFree(entry->def);
VIR_FREE(entry->filename);
VIR_FREE(entry);
+ virReportError(VIR_ERR_INTERNAL_ERROR, "%s",
+ _("xenXMConfigCacheRefresh: virHashAddEntry name"));
+ return -1;
}
}
VIR_DEBUG("Added config %s %s", entry->def->name, filename);