vhost: fix memory leak
authorYuanhan Liu <yuanhan.liu@linux.intel.com>
Tue, 28 Jun 2016 03:58:29 +0000 (11:58 +0800)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Mon, 4 Jul 2016 02:08:41 +0000 (04:08 +0200)
commit532f2ea5f8e208aa48645be2fd5f1c8b495ec786
treea09a4953fd9723e4f56c40c78f185bea57c63c26
parent5e02e19eb14e2ab191a7e75a2f0b46a3b7c85cca
vhost: fix memory leak

Fix potential memory leak raised by Coverity.

    >>>     Variable "vsocket" going out of scope leaks the storage it
    >>>     points to.

Coverity issue: 127483
Fixes: e623e0c6d8a5 ("vhost: add reconnect ability")

Reported-by: John McNamara <john.mcnamara@intel.com>
Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
lib/librte_vhost/vhost_user/vhost-net-user.c