]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: avoid memory leaks
authorEric Blake <eblake@redhat.com>
Tue, 2 Aug 2011 20:07:25 +0000 (14:07 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 2 Aug 2011 22:33:46 +0000 (16:33 -0600)
commit2ea9409a88f9f25aa0cc2727d6d6daf5e4f97615
tree3695d33914ec794509291e6fcd8d191c1bca0ef7
parent0c1813f4c90fda134ba2d5f3bed3f52cdc2fd833
qemu: avoid memory leaks

Quite a few leaks detected by coverity.  For chr, the leaks were
close enough to the allocations to plug in place; for disk, the
leaks were separated from the allocation by enough other lines with
intermediate failure cases that I refactored the cleanup instead.

* src/qemu/qemu_command.c (qemuParseCommandLine): Plug leaks.
src/qemu/qemu_command.c