]> xenbits.xensource.com Git - libvirt.git/commit
python: fix snapshot listing bugs
authorEric Blake <eblake@redhat.com>
Mon, 11 Jun 2012 20:49:03 +0000 (14:49 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 12 Jun 2012 12:43:25 +0000 (06:43 -0600)
commita0de5d78ef593958bcb83e563fe54137fe43c4ff
tree0b424ea47be3e68bdf578ae62513d2664095a0d5
parent8566618f65d983b31efb8efec13c25c6410b1718
python: fix snapshot listing bugs

Python exceptions are different than libvirt errors, and we had
some corner case bugs on OOM situations.

* python/libvirt-override.c (libvirt_virDomainSnapshotListNames)
(libvirt_virDomainSnapshotListChildrenNames): Use correct error
returns, avoid segv on OOM, and avoid memory leaks on error.
python/libvirt-override.c