Skip to content

net/intel: fix some small memory leaks

Bruce Richardson dpdk-dev 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 2 repliesIn review
  2. v26 patches 2 repliesSuperseded
  3. v12 patches 0 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6net/iavf: fix local memory leaks in TM hierarchy commitdrivers/net/intel/iavf/iavf_tm.c+14 -60 replies
2/6net/iavf: fix leak of queue to traffic class mapping datadrivers/net/intel/iavf/iavf_ethdev.c drivers/net/intel/iavf/iavf_tm.c+10 -30 replies
3/6net/iavf: fix memory leak on error when adding flow parserdrivers/net/intel/iavf/iavf_generic_flow.c+1 -00 replies
4/6net/ice: fix buffer leak in config of Tx queue TM nodedrivers/net/intel/ice/ice_tm.c+4 -20 replies
5/6net/iavf: fix leak of flex metadata extraction fielddrivers/net/intel/iavf/iavf_ethdev.c+5 -00 replies
6/6net/iavf: fix leak of IPsec crypto capabilities arraydrivers/net/intel/iavf/iavf_ipsec_crypto.c+2 -00 replies

Reviews trailers per patch

1 of 6 patches has a Reviewed-by or Acked-by.

PatchCiara Loftus
SeriesSeries-acked-by
1/6
2/6
3/6A-b
4/6
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/6] net/intel: fix some small memory leaks

AI review of a patch to traffic management code identified a couple of small memory leaks in that function. When fixing those, I then asked AI to identify other similar leaks other Intel drivers, leading to this patchset.

V3: update based on feedback on v2:
- fix log message on patch 3,
- add additional free on close in patch 5
V2: expand from 2 patches to 6 to cover some more leaks

Bruce Richardson (6):
net/iavf: fix local memory leaks in TM hierarchy commit net/iavf: fix leak of queue to traffic class mapping data net/iavf: fix memory leak on error when adding flow parser net/ice: fix buffer leak in config of Tx queue TM node net/iavf: fix leak of flex metadata extraction field net/iavf: fix leak of IPsec crypto capabilities array

 drivers/net/intel/iavf/iavf_ethdev.c       |  7 +++++
 drivers/net/intel/iavf/iavf_generic_flow.c |  1 +
 drivers/net/intel/iavf/iavf_ipsec_crypto.c |  2 ++
 drivers/net/intel/iavf/iavf_tm.c           | 31 +++++++++++++++-------
 drivers/net/intel/ice/ice_tm.c             |  6 +++--
 5 files changed, 36 insertions(+), 11 deletions(-)

--
2.53.0