Re: [dpdk-dev] [PATCH] vhost: clean up per-socket mutex

2017-07-01 Thread Yuanhan Liu
On Wed, Jun 14, 2017 at 10:19:53AM +0200, Jens Freimann wrote: > On Mon, Jun 12, 2017 at 02:29:04PM -0700, Daniel Verkamp wrote: > > vsocket->conn_mutex was allocated with pthread_mutex_init() but never > > freed with pthread_mutex_destroy(). This is a potential memory leak, > > depending on how p

Re: [dpdk-dev] [PATCH] vhost: clean up per-socket mutex

2017-06-14 Thread Jens Freimann
On Mon, Jun 12, 2017 at 02:29:04PM -0700, Daniel Verkamp wrote: > vsocket->conn_mutex was allocated with pthread_mutex_init() but never > freed with pthread_mutex_destroy(). This is a potential memory leak, > depending on how pthread_mutex_t is implemented. > > Signed-off-by: Daniel Verkamp > --

[dpdk-dev] [PATCH] vhost: clean up per-socket mutex

2017-06-12 Thread Daniel Verkamp
vsocket->conn_mutex was allocated with pthread_mutex_init() but never freed with pthread_mutex_destroy(). This is a potential memory leak, depending on how pthread_mutex_t is implemented. Signed-off-by: Daniel Verkamp --- lib/librte_vhost/socket.c | 3 +++ 1 file changed, 3 insertions(+) diff