Commit 72ec0bc
team: fix memory leaks
In functions team_nl_send_port_list_get() and
team_nl_send_options_get(), pointer skb keeps the return value of
nlmsg_new(). When the call to genlmsg_put() fails, the memory is not
freed(). This will result in memory leak bugs.
Fixes: 9b00cf2 ("team: implement multipart netlink messages for options transfers")
Signed-off-by: Pan Bian <[email protected]>
Acked-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>1 parent fccb442 commit 72ec0bc
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2361 | 2361 | | |
2362 | 2362 | | |
2363 | 2363 | | |
2364 | | - | |
| 2364 | + | |
| 2365 | + | |
2365 | 2366 | | |
| 2367 | + | |
2366 | 2368 | | |
2367 | 2369 | | |
2368 | 2370 | | |
| |||
2634 | 2636 | | |
2635 | 2637 | | |
2636 | 2638 | | |
2637 | | - | |
| 2639 | + | |
| 2640 | + | |
2638 | 2641 | | |
| 2642 | + | |
2639 | 2643 | | |
2640 | 2644 | | |
2641 | 2645 | | |
| |||
0 commit comments