[dpdk-stable] [PATCH] examples/vhost: fix memory leak on forwarding packets.

Xia, Chenbo chenbo.xia at intel.com
Thu Aug 26 13:47:07 CEST 2021


> -----Original Message-----
> From: Ma, WenwuX <wenwux.ma at intel.com>
> Sent: Wednesday, August 18, 2021 1:13 AM
> To: dev at dpdk.org
> Cc: maxime.coquelin at redhat.com; Xia, Chenbo <chenbo.xia at intel.com>; Jiang,
> Cheng1 <cheng1.jiang at intel.com>; Hu, Jiayu <jiayu.hu at intel.com>; Ma, WenwuX
> <wenwux.ma at intel.com>; stable at dpdk.org
> Subject: [PATCH] examples/vhost: fix memory leak on forwarding packets.

Should delete '.' in the title when applying.

With this fixed:

Reviewed-by: Chenbo Xia <chenbo.xia at intel.com>

> 
> In function virtio_tx_local(), when the device receiving the packet
> is the same as the device to which the packet is forwarded,
> or the device is removed, we return but not free the packet,
> it will cause a memory leak.
> 
> Fixes: 4796ad63ba1f ("examples/vhost: import userspace vhost application")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Wenwu Ma <wenwux.ma at intel.com>
> ---
>  examples/vhost/main.c | 2 ++
>  1 file changed, 2 insertions(+)



More information about the stable mailing list