• J
    Fix virsh snapshot-list error reporting · e3b21cdc
    Jim Fehlig 提交于
    Noticed that the expected "not supported" error is dropped when
    invoking 'virsh snapshot-list dom' on a Xen installation running
    the libxl driver
    
     virsh snapshot-list test
     error: Invalid snapshot: virDomainSnapshotFree
    
    The error is overwritten by a call to virDomainSnapshotFree
    in cleanup code within cmdSnapshotList.  Prevent overwritting
    the real error by not calling virDomainSnapshotFree with a NULL
    virDomainSnapshotPtr.
    e3b21cdc
virsh-snapshot.c 61.6 KB