]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: perf: Don't leak domain
authorPeter Krempa <pkrempa@redhat.com>
Thu, 21 Apr 2016 07:51:08 +0000 (09:51 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 21 Apr 2016 07:57:02 +0000 (09:57 +0200)
commitf4f916a9e35d50fe423443e95ca02b28fb2d0e0b
treefe26f04258d7da42da4cb2bc2f961a43fd08f49b
parent0217089b89af757192302cb78fd0f248b3256baf
virsh: perf: Don't leak domain

After failing to parse the perf event list, the code would return
failure without freeing the previously acquired object. Rearrange the
code to avoid the problem.

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