[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] libvhost-user: Fix resource leak

From: Maxime Coquelin
Subject: Re: [Qemu-devel] [PATCH] libvhost-user: Fix resource leak
Date: Thu, 8 Feb 2018 17:37:47 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2

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 <address@hidden>
  contrib/libvhost-user/libvhost-user.c |   14 ++++++++++++++
  1 file changed, 14 insertions(+)

Reviewed-by: Maxime Coquelin <address@hidden>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]