On 01/18/2018 04:41 PM, Yongji Xie wrote:
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 <xieyon...@baidu.com>
  contrib/libvhost-user/libvhost-user.c |   14 ++++++++++++++
  1 file changed, 14 insertions(+)

Reviewed-by: Maxime Coquelin <maxime.coque...@redhat.com>


Reply via email to