Re: [dpdk-dev] [PATCH] lib/librte_vhost: fix memory leak

2017-01-03 Thread Yuanhan Liu
On Tue, Jan 03, 2017 at 10:57:55PM -0500, Yong Wang wrote: > In function vhost_new_device(), current code dose not free 'dev' > in "i == MAX_VHOST_DEVICE" condition statements. It will lead to a > memory leak. Nice catch! Here are few minor stuff you might need pay attention to for future contrib

[dpdk-dev] [PATCH] lib/librte_vhost: fix memory leak

2017-01-03 Thread Yong Wang
In function vhost_new_device(), current code dose not free 'dev' in "i == MAX_VHOST_DEVICE" condition statements. It will lead to a memory leak. Signed-off-by: Yong Wang --- lib/librte_vhost/vhost.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/librte_vhost/vhost.c b/lib/librte_vhost/v