]> xenbits.xensource.com Git - libvirt.git/commit
virsh: Fix error resetting on fallback paths
authorPeter Krempa <pkrempa@redhat.com>
Thu, 26 Jul 2012 09:24:30 +0000 (11:24 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 27 Jul 2012 08:34:58 +0000 (10:34 +0200)
commit2751ab289bad78ff3da59d164859598ef52d7802
tree52d651e2b889353c0161d7eb2002da8b8e4c44c2
parent3df9626c404573d94580a2711e2d7a3e1aef7800
virsh: Fix error resetting on fallback paths

On some fallback paths in virsh, error reported by the previously failed
API is cleared by virResetLastError() that doesn't free error stored by
virsh. This patch changes this to clear it using vshResetLibvirtError().
tools/virsh-domain-monitor.c
tools/virsh-snapshot.c