diff options
| author | Eric Blake | 2016-01-29 14:48:42 +0100 |
|---|---|---|
| committer | Markus Armbruster | 2016-02-08 17:29:55 +0100 |
| commit | 7019738d4c9ce49b8fad09e9774393ad127b835d (patch) | |
| tree | 44bbdf582bf22e32f4c26ffb4566ee01514a4245 /include/exec | |
| parent | qapi: Drop dead parameter in gen_params() (diff) | |
| download | qemu-7019738d4c9ce49b8fad09e9774393ad127b835d.tar.gz qemu-7019738d4c9ce49b8fad09e9774393ad127b835d.tar.xz qemu-7019738d4c9ce49b8fad09e9774393ad127b835d.zip | |
hmp: Drop pointless allocation during qapi visit
The qapi visitor contract allows us to visit a virtual structure,
where we don't have any corresponding qapi struct. Most such uses
pass NULL for @obj; but these two callers were passing a dummy
pointer, which then gets allocated to heap memory but then
immediately freed without use. Clean this up to suppress unwanted
allocation, like we do elsewhere.
Signed-off-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <1454075341-13658-7-git-send-email-eblake@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Diffstat (limited to 'include/exec')
0 files changed, 0 insertions, 0 deletions
