diff options
| author | Paolo Bonzini | 2020-03-26 10:41:21 +0100 |
|---|---|---|
| committer | Paolo Bonzini | 2020-04-02 20:56:10 +0200 |
| commit | 7f5d9b206d1e86425faa5b84b551068bf044b823 (patch) | |
| tree | ff9185f720d36830ce74909068f0a17d2c2dd586 /include/exec/plugin-gen.h | |
| parent | qmp: fix leak on callbacks that return both value and error (diff) | |
| download | qemu-7f5d9b206d1e86425faa5b84b551068bf044b823.tar.gz qemu-7f5d9b206d1e86425faa5b84b551068bf044b823.tar.xz qemu-7f5d9b206d1e86425faa5b84b551068bf044b823.zip | |
object-add: don't create return value if failed
No need to return an empty value from object-add (it would also leak
if the command failed). While at it, remove the "if" around object_unref
since object_unref handles NULL arguments just fine.
Reported-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20200325184723.2029630-4-marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/exec/plugin-gen.h')
0 files changed, 0 insertions, 0 deletions
