diff options
author | Eric Blake <eblake@redhat.com> | 2016-01-29 06:48:42 -0700 |
---|---|---|
committer | Timothy Pearson <tpearson@raptorengineering.com> | 2019-11-29 19:31:49 -0600 |
commit | 9fb993646cda5f09ac2b35f22753a474c0ca6d62 (patch) | |
tree | 2b58e03854eede6f99591fd08d10b37e19fd444b /.mailmap | |
parent | 287a3754830577cb2c9cead09a37f5c3d0f00f46 (diff) | |
download | hqemu-9fb993646cda5f09ac2b35f22753a474c0ca6d62.zip hqemu-9fb993646cda5f09ac2b35f22753a474c0ca6d62.tar.gz |
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 '.mailmap')
0 files changed, 0 insertions, 0 deletions