Re: [Qemu-devel] [PATCH 03/10] qapi: fix memory leak on error

2012-03-22 Thread Anthony Liguori
On 03/22/2012 06:51 AM, Paolo Bonzini wrote: QmpInputVisitor would leak the malloced struct if the stack was overflowed. This can be easily fixed using error_propagate. Signed-off-by: Paolo Bonzini Reviewed-by: Anthony Liguori Regards, Anthony Liguori --- qapi/qmp-input-visitor.c |

[Qemu-devel] [PATCH 03/10] qapi: fix memory leak on error

2012-03-22 Thread Paolo Bonzini
QmpInputVisitor would leak the malloced struct if the stack was overflowed. This can be easily fixed using error_propagate. Signed-off-by: Paolo Bonzini --- qapi/qmp-input-visitor.c |6 -- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/qapi/qmp-input-visitor.c b/qapi/qmp