net/virtio: fix getline memory leakage
authorChengwen Feng <fengchengwen@huawei.com>
Wed, 21 Apr 2021 01:37:49 +0000 (09:37 +0800)
committerChenbo Xia <chenbo.xia@intel.com>
Wed, 28 Apr 2021 03:10:27 +0000 (05:10 +0200)
commit9f528374bffb5868ec6bf896f57919a709b31911
tree2885380acb785dfa4cfba5cf4570047fb25c9f48
parenta287ac28919d2808f09540cf5e36d474b06b8b2d
net/virtio: fix getline memory leakage

This patch fixes getline memory leakage when parsing dynamic major num.

Fixes: 7d62bf6f54ba ("net/virtio: introduce vhost-vDPA backend type")
Cc: stable@dpdk.org
Signed-off-by: Chengwen Feng <fengchengwen@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
drivers/net/virtio/virtio_user_ethdev.c