Message ID | 1440103221-21854-11-git-send-email-matthias.tafelmeier@gmx.net |
---|---|
State | Changes Requested, archived |
Delegated to: | stephen hemminger |
Headers | show |
diff --git a/misc/ss.c b/misc/ss.c index c00954d..db08c08 100644 --- a/misc/ss.c +++ b/misc/ss.c @@ -1666,10 +1666,6 @@ static void tcp_show_info(const struct nlmsghdr *nlh, struct inet_diag_msg *r, s.segs_out = info->tcpi_segs_out; s.segs_in = info->tcpi_segs_in; tcp_stats_fmt(&s); - if (s.dctcp) - free(s.dctcp); - if (s.cong_alg) - free(s.cong_alg); } } @@ -2368,8 +2364,6 @@ if (show_mem) { if (json_output) printf("}\n"); - if (name) - free(name); return 0; }
Minor fix to enable json output. Freeing of automatic char array name which will get freed after function stack cleanup. Another one after tcp_stats_fmt for freeing automatic tcpstats struct instance. Signed-off-by: Matthias Tafelmeier <matthias.tafelmeier@gmx.net> --- misc/ss.c | 6 ------ 1 file changed, 6 deletions(-)