summaryrefslogtreecommitdiffstats
path: root/contrib/libvhost-user/libvhost-user.h
diff options
context:
space:
mode:
authorYongji Xie2018-01-18 16:41:56 +0100
committerMichael S. Tsirkin2018-02-13 17:25:48 +0100
commitbb102d1da15a97c6750a4f96810cf15713be2bd6 (patch)
tree0d1d9a8da94de650f6a05d7e106ed680c3904442 /contrib/libvhost-user/libvhost-user.h
parentvirtio-balloon: unref the memory region before continuing (diff)
downloadqemu-bb102d1da15a97c6750a4f96810cf15713be2bd6.tar.gz
qemu-bb102d1da15a97c6750a4f96810cf15713be2bd6.tar.xz
qemu-bb102d1da15a97c6750a4f96810cf15713be2bd6.zip
libvhost-user: Fix resource leak
Free the mmaped memory when we need to mmap new memory space on vu_set_mem_table_exec() and vu_set_log_base_exec() to avoid memory leak. Also close the corresponding fd after mmap() on vu_set_log_base_exec() to avoid fd leak. Signed-off-by: Yongji Xie <xieyongji@baidu.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'contrib/libvhost-user/libvhost-user.h')
0 files changed, 0 insertions, 0 deletions