diff --git a/usr.bin/sockstat/sockstat.c b/usr.bin/sockstat/sockstat.c index 87deb7358e4..3aa3e0d3f85 100644 --- a/usr.bin/sockstat/sockstat.c +++ b/usr.bin/sockstat/sockstat.c @@ -279,7 +279,6 @@ gather_inet(int proto) } else { if (opt_v) warnx("invalid vflag 0x%x", inp->inp_vflag); - free(sock); continue; } if ((sock = calloc(1, sizeof *sock)) == NULL)