]> xenbits.xensource.com Git - libvirt.git/commit
virsh: Do not try to free domain if it is NULL
authorOsier Yang <jyang@redhat.com>
Tue, 23 Aug 2011 13:42:22 +0000 (21:42 +0800)
committerOsier Yang <jyang@redhat.com>
Tue, 23 Aug 2011 13:42:22 +0000 (21:42 +0800)
commit241cbc13acfae4b107bb2903d52d01f86b3ef72a
tree0658ed6ce881975bdfcdbe56dd6f6239077d1e7f
parent0756e5ad929309d95fc085f014b44a448414ce9f
virsh: Do not try to free domain if it is NULL

Without these patch, there will be error like below if domain
is NULL.

error: invalid domain pointer in virDomainFree

Which is useless.
tools/virsh.c