]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Don't leak buffer if GetFDs fails in cmdCreate
authorJán Tomko <jtomko@redhat.com>
Mon, 24 Feb 2014 13:26:53 +0000 (14:26 +0100)
committerJán Tomko <jtomko@redhat.com>
Mon, 24 Feb 2014 17:46:34 +0000 (18:46 +0100)
commitfe1b6e72d2d2e350e49d0f5d5b0fecbbed854a1b
tree6b75cf989e929d6d93fd51c0530e0f25b329f2e8
parentcfad607b238d3bf14ecd5d5500f61b6c30300e33
virsh: Don't leak buffer if GetFDs fails in cmdCreate

Change the logic of the function to return false by default
and move the freeing of the buffer to the cleanup section.

https://bugzilla.redhat.com/show_bug.cgi?id=1067338
tools/virsh-domain.c