Re: [Qemu-devel] [PATCH 05/10] qapi: allow freeing partially-allocated objects

2012-03-22 Thread Anthony Liguori
On 03/22/2012 06:51 AM, Paolo Bonzini wrote: Objects going through the dealloc visitor can be only partially allocated. Detect the situation and avoid a segfault. This also helps with the input visitor, when there are errors. Signed-off-by: Paolo Bonzini Reviewed-by: Anthony Liguori Regards

[Qemu-devel] [PATCH 05/10] qapi: allow freeing partially-allocated objects

2012-03-22 Thread Paolo Bonzini
Objects going through the dealloc visitor can be only partially allocated. Detect the situation and avoid a segfault. This also helps with the input visitor, when there are errors. Signed-off-by: Paolo Bonzini --- scripts/qapi-visit.py |7 +++ 1 files changed, 7 insertions(+), 0 deletio