Skip to content

Fix memory leaks in callers of rtnl_talk()

Benjamin Poirier netdev 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5ip address: Fix memory leak when specifying deviceip/ipaddress.c+2 -00 replies
2/5bridge: Fix memory leak when doing 'fdb get'bridge/fdb.c+5 -20 replies
3/5mptcp: Fix memory leak when doing 'endpoint show'ip/ipmptcp.c+1 -00 replies
4/5mptcp: Fix memory leak when getting limitsip/ipmptcp.c+7 -30 replies
5/5ip neigh: Fix memory leak when doing 'get'ip/ipneigh.c+2 -00 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchIdo Schimmel
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

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

Read the v1 thread

Cover letter [PATCH iproute2 0/5] Fix memory leaks in callers of rtnl_talk()

The answer returned by rtnl_recvmsg() must be freed by the caller. A few callers, through rtnl_talk(), mistakenly omit to free the result, leading to memory leaks. The impact of these leaks is minimal but they clutter the output of valgrind and similar tools and they lead to inconsistent code patterns.

Benjamin Poirier (5):
ip address: Fix memory leak when specifying device
bridge: Fix memory leak when doing 'fdb get'
mptcp: Fix memory leak when doing 'endpoint show'
mptcp: Fix memory leak when getting limits ip neigh: Fix memory leak when doing 'get'

 bridge/fdb.c   |  7 +++++--
 ip/ipaddress.c |  2 ++
 ip/ipmptcp.c   | 11 ++++++++---
 ip/ipneigh.c   |  2 ++
 4 files changed, 17 insertions(+), 5 deletions(-)
Signature · 1 line
2.36.1