diff options
author | Phil Sutter <phil@nwl.cc> | 2017-08-17 19:09:30 +0200 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2017-08-18 09:39:52 -0700 |
commit | 46131577cf1ba37198c82e1ce89c9bbca2153ef4 (patch) | |
tree | 9c80402bd0842d55531f8d842e451fa1da817de7 /misc | |
parent | b530cef0e3bbd27510e19f5f720a7ec94f3fa723 (diff) | |
download | iproute2-46131577cf1ba37198c82e1ce89c9bbca2153ef4.tar.gz |
ss: Fix potential memleak in unix_stats_print()
Fixes: 2d0e538f3e1cd ("ss: Drop list traversal from unix_stats_print()")
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ss.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -3170,8 +3170,10 @@ static int unix_show(struct filter *f) if (name[0]) { u->name = strdup(name); - if (!u->name) + if (!u->name) { + free(u); break; + } } if (u->rport) { |