[libvirt] [PATCH] qemu: Avoid NULL dereference in qemuSharedDiskEntryFree

2013-03-12 Thread Jiri Denemark
At least one caller may call qemuSharedDiskEntryFree with NULL as the first argument. Let's make the function similar to other *Free functions and do nothing in such case. --- src/qemu/qemu_conf.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c

Re: [libvirt] [PATCH] qemu: Avoid NULL dereference in qemuSharedDiskEntryFree

2013-03-12 Thread Peter Krempa
On 03/12/13 09:13, Jiri Denemark wrote: At least one caller may call qemuSharedDiskEntryFree with NULL as the first argument. Let's make the function similar to other *Free functions and do nothing in such case. --- src/qemu/qemu_conf.c | 3 +++ 1 file changed, 3 insertions(+) ACK. Peter

Re: [libvirt] [PATCH] qemu: Avoid NULL dereference in qemuSharedDiskEntryFree

2013-03-12 Thread Jiri Denemark
On Tue, Mar 12, 2013 at 09:32:16 +0100, Peter Krempa wrote: On 03/12/13 09:13, Jiri Denemark wrote: At least one caller may call qemuSharedDiskEntryFree with NULL as the first argument. Let's make the function similar to other *Free functions and do nothing in such case. ---