> -----Original Message----- > From: Shani Peretz <[email protected]> > Sent: Tuesday, March 24, 2026 9:11 AM > To: [email protected] > Cc: Shani Peretz <[email protected]>; [email protected]; Aman Singh > <[email protected]>; Dariusz Sosnowski > <[email protected]> > Subject: [PATCH] app/testpmd: fix memory leak in port flow configure > > 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: [email protected] > > Signed-off-by: Shani Peretz <[email protected]>
Reviewed-by: Dariusz Sosnowski <[email protected]> Best regards, Dariusz Sosnowski

