Re: [PATCH v5 02/35] net/intel: fix memory leak on TX queue setup failure

Burakov, Anatoly
2026-02-12T12:14:57Z

On 2/11/2026 7:12 PM, Bruce Richardson wrote:
> When TX queue setup fails after sw_ring allocation but during
> completion queue setup, the allocated sw_ring memory is not freed,
> causing a memory leak.
>
> This patch adds the missing rte_free() call in the error path for
> both cpfl and idpf drivers to properly clean up sw_ring before
> returning from the function.
>
> Fixes: 6c2d333cd418 ("net/cpfl: support Tx queue setup")
> Fixes: c008a5e740bd ("common/idpf: add queue setup/release")
> Cc: stable@dpdk.org
>
> Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
> ---

Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>

--
Thanks,
Anatoly