]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix virsh snapshot-list error reporting
authorJim Fehlig <jfehlig@suse.com>
Thu, 25 Jul 2013 20:18:14 +0000 (14:18 -0600)
committerJim Fehlig <jfehlig@suse.com>
Thu, 25 Jul 2013 20:22:47 +0000 (14:22 -0600)
commite3b21cdc315439dda2dcdc0781d5ae1d2f082c21
tree910f21fde115f40c209b6e1d51f95afef250bb84
parent56b54173edfba3f91eef0e508272f1ad3530a895
Fix virsh snapshot-list error reporting

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.
tools/virsh-snapshot.c