net/virtio: fix memory leak on failure
authorPengzhen Liu <liupengzhen3@huawei.com>
Fri, 27 Oct 2017 03:54:09 +0000 (11:54 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 12 Nov 2017 18:50:43 +0000 (19:50 +0100)
In function eth_virtio_dev_init(), dynamic memory stored
in "eth_dev->data->mac_addrs" variable and it is not freed
when function return,
this is a possible memory leak.

Fixes: 8ced1542f7a3 ("net/virtio: eth_dev->data->mac_addrs is not freed")
Cc: stable@dpdk.org
Signed-off-by: Pengzhen Liu <liupengzhen3@huawei.com>
Acked-by: Yuanhan Liu <yliu@fridaylinux.org>

No differences found