• J
    xen_xm: Resolve Coverity USE_AFTER_FREE · cfbbeb36
    John Ferlan 提交于
    If virDomainDiskDefFree(disk) is called in 'skipdisk:', then it's possible
    to either return to skipdisk without reallocating a new disk (via the if
    condition just prior) or to end the loop having deleted the disk. Since
    virDomainDiskDefFree() does not pass by reference, disk isn't changed in
    this context, thus the possible issue.
    cfbbeb36
xen_xm.c 12.7 KB