]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix leak on OOM in qemuBuildCommandLine dealing with sound card
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 24 Sep 2013 15:26:18 +0000 (16:26 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Wed, 25 Sep 2013 14:49:27 +0000 (15:49 +0100)
commit86139a408dae1f238f9bec6e1eac2f59dc8c00db
treee0a526c2776e59f1828171d658fbcfba19d882de
parenta72d25f40f619c3174d23a06384d6551e16cf388
Fix leak on OOM in qemuBuildCommandLine dealing with sound card

The qemuBuildCommandLine code for parsing sound cards will leak
an intermediate variable if an OOM occurs. Move the free'ing of
the variable earlier to avoid the leak.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/qemu/qemu_command.c