[PATCH] app/testpmd: fix flow cfg double-free after reattach
Thomas Monjalon
thomas at monjalon.net
Fri Jul 10 23:45:12 CEST 2026
06/07/2026 13:52, Maayan Kashani:
> From: Shani Peretz <shperetz at nvidia.com>
>
> When a port is closed via close_port(), port_free_job_list() frees the
> job_list but does not NULL the pointer or reset queue_nb. If the port
> is later reattached and "flow configure" is issued, port_flow_configure()
> frees the dangling job_list pointer, causing a double-free.
>
> Fix this by setting job_list to NULL and resetting queue_nb to zero in
> port_free_job_list() after freeing.
>
> Fixes: 7fadc8039588 ("app/testpmd: fix memory leak in port flow configure")
> Cc: stable at dpdk.org
>
> Signed-off-by: Shani Peretz <shperetz at nvidia.com>
> Acked-by: Dariusz Sosnowski <dsosnowski at nvidia.com>
Applied, thanks.
More information about the dev
mailing list