vhost: fix zmbufs array leak after NUMA realloc
authorIlya Maximets <i.maximets@samsung.com>
Wed, 15 Aug 2018 14:54:39 +0000 (17:54 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 12 Sep 2018 17:10:09 +0000 (19:10 +0200)
commit28925156d91bedb8f4b85b10dd9f3303a4d9e759
treef341c2523ddf6ba720babb414d25491594bad582
parentb24ec9bc1c43f7cada0b16709043f84f52f2b895
vhost: fix zmbufs array leak after NUMA realloc

'numa_realloc()' allocates 'zmbufs' even if zero copy mode
is not configured. This leads to memory leak, because array
is freed only for zero copy case.

Fixes: 2651726defb7 ("vhost: do deep copy while reallocating queue")
CC: stable@dpdk.org
Signed-off-by: Ilya Maximets <i.maximets@samsung.com>
Reviewed-by: Tiwei Bie <tiwei.bie@intel.com>
lib/librte_vhost/vhost_user.c