mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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>
This commit is contained in:
parent
3e81a71c9f
commit
f1e43b6026
2 changed files with 12 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue