]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix crash on OOM in qemuDomainCCWAddressSetCreate()
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 23 Sep 2013 13:10:35 +0000 (14:10 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 24 Sep 2013 09:52:21 +0000 (10:52 +0100)
commitba19783d9bd2e1d2e1c517b2bcb231c0a85aed54
treefa43f70a19e92298a589f5b19ea318b3e88353c0
parentf27490b7057a59b8b9475d15fc5b397c0b038c13
Fix crash on OOM in qemuDomainCCWAddressSetCreate()

If OOM occurs in qemuDomainCCWAddressSetCreate, it jumps to
a cleanup block and frees the partially initialized object.
It then mistakenly returns the address of the just free'd
pointer instead of NULL.

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