[PATCH] app/testpmd: fix memory leak in port flow configure
Stephen Hemminger
stephen at networkplumber.org
Tue Mar 24 16:56:53 CET 2026
On Tue, 24 Mar 2026 10:10:44 +0200
Shani Peretz <shperetz at nvidia.com> wrote:
> When "flow configure" is issued multiple times on the same port,
> port_flow_configure() allocates a new job_list via calloc() without
> freeing the previous allocation, leaking it. The old pointer is
> simply overwritten.
>
> testpmd> flow configure 0 queues_number 10 queues_size 256 ...
> testpmd> flow configure 0 queues_number 10 queues_size 256 ...
>
> The patch fixes this by freeing the existing job_list before allocating
> the replacement.
>
> Fixes: df503d757b36 ("app/testpmd: fix flow queue job leaks")
> Cc: stable at dpdk.org
>
> Signed-off-by: Shani Peretz <shperetz at nvidia.com>
Applied to next-net
More information about the dev
mailing list