diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-03-22 12:51:05 +0100 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2012-03-27 09:13:48 -0300 |
commit | 8b714d3747e6870db85dd9382adb8ee371633092 (patch) | |
tree | 5cf89bbeb3516c49b8ae87931aac73e40ce7e5cb /qemu-option.c | |
parent | 2c7ff93359e820f90bfb4ac9efd6ec35949e5630 (diff) |
qapi: fix memory leak on error
QmpInputVisitor would leak the malloced struct if the stack was
overflowed. This can be easily fixed using error_propagate.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'qemu-option.c')
0 files changed, 0 insertions, 0 deletions