[dpdk-dev] [dpdk-stable] [PATCH] net/virtio: fix memory leak

Yuanhan Liu yliu at fridaylinux.org
Wed Nov 1 16:49:05 CET 2017


On Wed, Nov 01, 2017 at 11:33:51PM +0800, Yuanhan Liu wrote:
> On Fri, Oct 27, 2017 at 11:54:09AM +0800, Pengzhen Liu wrote:
> > 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 at dpdk.org
> > Signed-off-by: Pengzhen Liu <liupengzhen3 at huawei.com>
> 
> Acked-by: Yuanhan Liu <yliu at fridaylinux.org>

BTW, I have just seen you have send multiple versions out regarding this
patch. Next time please tag your patches with version, something like:

    $ git format-patch -v 2 ...
	
	--yliu


More information about the dev mailing list