diff options
author | Anthony PERARD <anthony.perard@citrix.com> | 2021-04-30 17:37:42 +0100 |
---|---|---|
committer | Anthony PERARD <anthony.perard@citrix.com> | 2021-05-10 13:43:58 +0100 |
commit | f1e43b6026500690fc402828fa7cc735175b93b6 (patch) | |
tree | c09900d3911313d41ee017763ce6a3ffc41be65f /include/hw | |
parent | 3e81a71c9f3d23002b1e0dfff902c155d6c8d224 (diff) | |
download | qemu-f1e43b6026500690fc402828fa7cc735175b93b6.zip qemu-f1e43b6026500690fc402828fa7cc735175b93b6.tar.gz qemu-f1e43b6026500690fc402828fa7cc735175b93b6.tar.bz2 |
xen: Free xenforeignmemory_resource at exit
Because Coverity complains about it and this is one leak that Valgrind
reports.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Paul Durrant <paul@xen.org>
Message-Id: <20210430163742.469739-1-anthony.perard@citrix.com>
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Diffstat (limited to 'include/hw')
-rw-r--r-- | include/hw/xen/xen_common.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/hw/xen/xen_common.h b/include/hw/xen/xen_common.h index 82e5633..a8118b4 100644 --- a/include/hw/xen/xen_common.h +++ b/include/hw/xen/xen_common.h @@ -134,6 +134,12 @@ static inline xenforeignmemory_resource_handle *xenforeignmemory_map_resource( return NULL; } +static inline int xenforeignmemory_unmap_resource( + xenforeignmemory_handle *fmem, xenforeignmemory_resource_handle *fres) +{ + return 0; +} + #endif /* CONFIG_XEN_CTRL_INTERFACE_VERSION < 41100 */ #if CONFIG_XEN_CTRL_INTERFACE_VERSION < 41000 |