Re: [Qemu-devel] [PATCH] qdev: Free opts on failed do_device_add

2010-02-19 Thread Anthony Liguori
On 02/16/2010 06:12 AM, Kevin Wolf wrote: If the device can't be created, don't leak the QemuOpts and release the id of the device that should have been added by the failed device_add. Signed-off-by: Kevin Wolf Applied. Thanks. Regards, Anthony Liguori --- hw/qdev.c |7 +--

Re: [Qemu-devel] [PATCH] qdev: Free opts on failed do_device_add

2010-02-16 Thread Gerd Hoffmann
On 02/16/10 13:12, Kevin Wolf wrote: If the device can't be created, don't leak the QemuOpts and release the id of the device that should have been added by the failed device_add. Acked-by: Gerd Hoffmann cheers, Gerd

[Qemu-devel] [PATCH] qdev: Free opts on failed do_device_add

2010-02-16 Thread Kevin Wolf
If the device can't be created, don't leak the QemuOpts and release the id of the device that should have been added by the failed device_add. Signed-off-by: Kevin Wolf --- hw/qdev.c |7 +-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hw/qdev.c b/hw/qdev.c index 539b5a