]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: fix crash with shared disks
authorJán Tomko <jtomko@redhat.com>
Wed, 17 Sep 2014 10:36:21 +0000 (12:36 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 18 Sep 2014 07:05:21 +0000 (09:05 +0200)
commit540ee872494316ef5bfc17ef3dd4338080c3e513
treee09fb2191cdc6ecab3f8aa6b6bc93859a0cacc02
parent434dd55194454ded39e82d2c80ff7d469736329c
qemu: fix crash with shared disks

Commit f36a94f introduced a double free on all success paths
in qemuSharedDeviceEntryInsert.

Only call qemuSharedDeviceEntryFree on the error path and
set entry to NULL before jumping there if the entry already
is in the hash table.

https://bugzilla.redhat.com/show_bug.cgi?id=1142722
src/qemu/qemu_conf.c
src/qemu/qemu_conf.h