Don't free(sock) before it's even allocated.

Submitted by:	Joerg Sonnenberger <joerg@britannica.bec.de>
MFC after:	1 week
This commit is contained in:
Dag-Erling Smørgrav 2005-06-10 06:36:03 +00:00
parent 57341fbcf3
commit fd0cba238e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=147227

View File

@ -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)