vhost: clean up per-socket mutex
authorDaniel Verkamp <daniel.verkamp@intel.com>
Mon, 12 Jun 2017 21:29:04 +0000 (14:29 -0700)
committerYuanhan Liu <yliu@fridaylinux.org>
Sat, 1 Jul 2017 23:16:31 +0000 (01:16 +0200)
commit3cb502b31066d13fa4d22f7f1eec5a8459ef1e8f
tree4c288df0a4b4ec1fcc2ce4dfb4567e1caa950e78
parent6cb559d67b83045e99c3c6d7de423960076ce207
vhost: clean up per-socket mutex

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 <daniel.verkamp@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
lib/librte_vhost/socket.c