diff options
| author | Paolo Bonzini | 2012-03-22 12:51:06 +0100 |
|---|---|---|
| committer | Luiz Capitulino | 2012-03-27 14:13:57 +0200 |
| commit | b6f0474fc0fe6f81d93d620a5d24bc30b22d561b (patch) | |
| tree | c91eb419098ef4529f497f0db7af77c51ef4f91e /docs | |
| parent | qapi: fix memory leak on error (diff) | |
| download | qemu-b6f0474fc0fe6f81d93d620a5d24bc30b22d561b.tar.gz qemu-b6f0474fc0fe6f81d93d620a5d24bc30b22d561b.tar.xz qemu-b6f0474fc0fe6f81d93d620a5d24bc30b22d561b.zip | |
qapi: shortcut visits on errors
We can exit very soon if we enter a visitor with a preexisting error.
This simplifies some cases because we will not have to deal with
obj being non-NULL while *obj is NULL.
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 'docs')
0 files changed, 0 insertions, 0 deletions
