From fd0cba238e14093c7a7d65c02e2f23ed0ae68c25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Fri, 10 Jun 2005 06:36:03 +0000 Subject: [PATCH] Don't free(sock) before it's even allocated. Submitted by: Joerg Sonnenberger MFC after: 1 week --- usr.bin/sockstat/sockstat.c | 1 - 1 file changed, 1 deletion(-) 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)