Yong Wang 5731d6acc7 vhost: fix memory leak
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.

Fixes: 45ca9c6f7bc6 ("vhost: get rid of linked list for devices")
Cc: stable@dpdk.org

Signed-off-by: Yong Wang <wang.yong19@zte.com.cn>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
2017-01-17 09:20:17 +01:00
..
2016-11-06 23:34:40 +01:00
2016-10-12 18:40:52 +02:00
2016-11-07 21:50:27 +01:00
2016-11-06 23:46:03 +01:00
2017-01-04 20:40:15 +01:00
2016-10-13 11:42:37 +02:00
2016-10-12 22:08:36 +02:00
2016-10-05 12:02:53 +02:00
2017-01-17 09:20:17 +01:00