Fix memory leaks in callers of rtnl_talk()
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | ip address: Fix memory leak when specifying deviceip/ | +2 | 0 replies | |
| 2/5 | bridge: Fix memory leak when doing 'fdb get'bridge/ | +5 | 0 replies | |
| 3/5 | mptcp: Fix memory leak when doing 'endpoint show'ip/ | +1 | 0 replies | |
| 4/5 | mptcp: Fix memory leak when getting limitsip/ | +7 | 0 replies | |
| 5/5 | ip neigh: Fix memory leak when doing 'get'ip/ | +2 | 0 replies |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by.
| Patch | Ido Schimmel |
|---|---|
| 1/5 | R-b |
| 2/5 | R-b |
| 3/5 | R-b |
| 4/5 | R-b |
| 5/5 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
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